News for hackers. Stuff that matters.
Re:Django vs. Flask by coldtea on Monday July 03, 2017 @03:31PM (#14690750)
>But if you're building something that you hope you'll have to rapidly scale, Django is going to hurt you. It's way harder to scale due to both its heavy reliance on hidden magic its tight integration with its data store.

Considering that Django has 1/5th as much "magic" as Rails, and that Rails powers some of the biggest websites on the world, I'd say "citation needed".

Re:Django vs. Flask by jrs95 on Monday July 03, 2017 @03:34PM (#14690775)
And Django powers some huge sites as well. IMO the magic doesn't really hurt you there as long as your still working with a relatively monolithic piece of software.
Re:Django vs. Flask by a3n on Monday July 03, 2017 @05:53PM (#14691690)
What is "magic,' and how do you measure it so that you can say things like "1/5?"
Re:Django vs. Flask by coldtea on Tuesday July 04, 2017 @02:30AM (#14693942)
Ever seen Penn and Teller?

Joking aside, generally we call "magic" uses of reflection, monkey-patching, auto-magically configured parts, parts of a framework that do way more than what we explicitly tell them, etc.

"1/5 less magic" is what we call in casual conversation "making a point" and not an actual measurement. It is however more than 85% factually correct.

The Django project leaders have stated that one of their goals was to not have "magic" in the framework, and in fact, one of the early (~ Django 1.2 or so) refactoring efforts was about removing "magic" too-clever parts for more explicitness.

Re:Django vs. Flask by Steeeve on Monday July 03, 2017 @03:39PM (#14690812)
What besides reddit?
Re:Django vs. Flask by brynedwards on Monday July 03, 2017 @03:55PM (#14690935)
There is a list at the bottom of this page: https://www.djangoproject.com/start/overview/

    Disqus
    Instagram
    Knight Foundation
    MacArthur Foundation
    Mozilla
    National Geographic
    Open Knowledge Foundation
    Pinterest
    Open Stack
Re:Django vs. Flask by yen223 on Monday July 03, 2017 @05:33PM (#14691560)
If the answer here is to be believed, Pinterest has consciously moved away from Django.

https://www.quora.com/Would-Pinterest-consider-Flask-in-plac...

Re:Django vs. Flask by coldtea on Tuesday July 04, 2017 @02:30AM (#14693946)
Yes, but that doesn't matter much, since they got to billion valuations just fine WITH Django.
Re:Django vs. Flask by mugsie on Tuesday July 04, 2017 @08:14AM (#14695381)
Only one of the main Open Stack projects uses Django - and it is a complete pain to work on as a result.

Most of the projects in OpenStack use Flask or Pecan - or Falcon for one or two of the more performance sensitive APIs

Re:Django vs. Flask by gejjaxxita on Wednesday July 05, 2017 @08:26PM (#14707297)
Having used Django and that project (Horizon) extensively, I think that Horizon is not a pain to work on as a result of Django, it was just badly written.
Re:Django vs. Flask by dom0 on Monday July 03, 2017 @03:44PM (#14690858)
Reddit uses Pylons iirc

But see for yourself: https://github.com/reddit/reddit

Re:Django vs. Flask by Steeeve on Monday July 03, 2017 @03:52PM (#14690916)
Interesting. Looking around because I thought it was ruby at one point, but it turns out it was originally written in Lisp. http://www.aaronsw.com/weblog/rewritingreddit

I don't know where I got that idea from.

Re:Django vs. Flask by agumonkey on Monday July 03, 2017 @04:41PM (#14691209)
And they blogged about moving to typescript for frontend at least
Re:Django vs. Flask by Jugurtha on Monday July 03, 2017 @04:18PM (#14691078)
I believe python.org, too, is built on Django[0].

Also, here's an interesting thread on Artima: "Please Teach me Web Frameworks for Python!"[1] by Guido van van Rossum[sic]. It's 11 years old (a lot has changed since?), but interesting.

[0]: https://github.com/python/pythondotorg

[1]: http://www.artima.com/weblogs/viewpost.jsp?thread=146149

Re:Django vs. Flask by 147 on Monday July 03, 2017 @03:42PM (#14690835)
Reddit isn't powered by Django as far as I know. But Instagram is and I believe Pinterest was/is.
Re:Django vs. Flask by codefreakxff on Monday July 03, 2017 @03:54PM (#14690926)
Re:Django vs. Flask by sthatipamala on Monday July 03, 2017 @04:16PM (#14691064)
The Pinterest web backend has some vestiges of Django for form validations and stuff, but IIRC it's mostly custom at this point.
Re:Django vs. Flask by CCing on Monday July 03, 2017 @04:09PM (#14691029)
Backend is still django though
Re:Django vs. Flask by danso on Monday July 03, 2017 @05:52PM (#14691682)
PyCon's keynote this year was given by Instagram: https://www.youtube.com/watch?v=66XoCk79kjM
Re:Django vs. Flask by wyc on Monday July 03, 2017 @03:51PM (#14690910)
Kept a small list here, including codebase changes made for scaling and references:

https://www.wyc.io/posts/just-build-it-in-django-or-rails/

Instagram, Disqus, Bitbucket, Pinterest.

Apologies in advanced for any marketing copies you don't want to read. The information is there.

Re:Django vs. Flask by flunhat on Monday July 03, 2017 @03:43PM (#14690848)
Instagram is one, I'm sure there's others [1].

[1] https://engineering.instagram.com/web-service-efficiency-at-...

Re:Django vs. Flask by Veratyr on Monday July 03, 2017 @03:44PM (#14690855)
Reddit is Pylons based. Instagram is Django though.