302 points · by cdnsteve · 10y ago · 101 comments
Does any other framework ecosystem work the same way? I don't follow Rails or other ones as closely as I do Python and Django.
The core team has been willing to rip out and improve central infrastructure but never at the cost of unreasonable backward incompatibilities, and all changes are documented. Upgrading is never easy on large projects but it's been the easiest in Django. And the third-party packages pretty much fill every niche in a very modular way.
I see other devs complaining about their current frameworks' lack of documentation or testing and I feel like I'm in a parallel universe. I can never go back trivially to year-old JS code (and Rails isn't that much better) without some level of breakage or a new way of doing things.
Of course other technologies share a similar position on the matter, but they generally don't move as fast as Django does.
For the most part they've not had to make huge changes because they've made good decisions at the beginning and resisted doing silly things in the core. Contrast with Rails and their scriptaculous past, which was dumped for coffeescript, which I'm pretty sure will be dumped soon (coffeescript is fading from the js mindset now for react/jsx/angular/typescript).
You're joking, right? They break compatibility with every minor version, forcing tens of thousands of developers to waste valuable hours each time they update.
If there's something to learn from this project, it's that if you find your niche and gain enough momentum, you can piss on your user base and they'll say it's raining.
A quick Googling estimates that Basecamp generates 10 million+ a month[0] in revenue.
That's the one thing I like about Rails. Features and design decisions tend to come from real life use cases. The core developers have every reason in the world to make it the best it can be because their entire business depends on it.
https://www.quora.com/How-many-paid-customers-does-Basecamp-...
In my for-profit organization, we thought we should contribute to the free / open source projects that we were using and which were helping us make money. We wanted to pay our share.
We started by putting together a list, and that's pretty much where it ended. The list was enormous. Try it yourself, and don't forget the components of other products that are FOSS. EDIT: Here's Mozilla's attempt at making such a list, which they label "incomplete":
https://wiki.mozilla.org/MOSS/Projects_in_use_by_Mozilla
On one hand, it reflects the incredible contribution of FOSS software. On the other there was no way, in a busy workplace, we were going to spend days tracking down all those FOSS developers, finding ways to send them money, and implementing it.
On the other hand this feels a bit like "Build the web applications of today, tomorrow!" I think that's an inherent problem with kitchen sink frameworks; new things that come along have be shoehorned into the old way of doing things, except when they can't, and then you have to restructure your foundation. I stopped using Django a couple years ago because the kind of apps I wanted to build were REST APIs, websockets, a little static file serving, and connections to realtime backends like redis pubsubs or RabbitMQ. Django wasn't great at any of those, yet carried a lot of baggage from stuff I didn't need (e.g. form handing, templates).
I would recommend Flask and/or its underlying Werkzeug library (my personal preference) over Django.
There are some projects that Django is not the right solution for and something like Flask/Werkzeug is definitely better, for sure, but I'm hopeful that the work being done here will help out the majority of people; it brings a lot more than just WebSocket support to the table, that's just the headline feature most people run with.
Flask is basically abandoned, despite continually receiving undocumented commits.
Flask hasn't even had a PyPi release, or even a Git tag for that matter, since June, 2013. The documentation is also far behind.
The other main difference is Django is developed as part of a large organization, Flask is not. Get the right people together and that could be fixed easily...
I use Werkzeug directly rather than Flask, so I can't speak to whether Flask is abandonware or not, but I'm very happy with Werkzeug. With very little effort, I get to build just enough framework for my application, without having to be shoehorned into someone else's tradeoffs.
Have you tried out Falcon, btw? If so, how does it compare to Werkzeug?
They add tons. There are many commits, bug fixes, etc. It's just that there A) hasn't been a release to PyPi, B) is an inordinate quantity of unmerged pull requests, C) are many undocumented changes, and D) issues like https://github.com/mitsuhiko/flask/issues/1272 that are over a year old (I left a comment https://github.com/mitsuhiko/flask/issues/1575#issuecomment-... explaining the vicious circle that I believe is created by not releasing to PyPi). I commit to Django (and donate), but I would never commit to Flask when it makes no attempt at Industry Standards™ like PyPi releases.
I shouldn't have said it's "abandoned", because that's an insult to the parts of the community that are very active.
Im wondering what's a suitable alternative.... with SQLAlchemy and Celery/RQ integration?
This is the best news! Thanks @ Andrew Godwin (since I see him in here) for all the work you've done on Django over the past N years. I've contributed small amounts of money to the fellowship program 3 or 4 times now, but the sum of that program's entire fundraising for 2015 is almost tripled by this single grant, and the purpose of this grant money is so exciting. Channels is awesome; so is Django REST Framework. Adding the best of these things to the core and tightening some of the architecture sounds exciting. It helps to position Django for continued relevance, web services and real-time applications become more popular.
Why ask for donations if you are expecting to donate the money away instead of using it to improve your products?
I donated to mozilla a few weeks ago, but now I wonder if I should have just donated directly to django instead, skip the middleman that is not adding anything.
Nonprofits often fund themselves through donations, and award grants as a means of advancing their mission.
> I donated to mozilla a few weeks ago, but now I wonder if I should have just donated directly to django instead, skip the middleman that is not adding anything.
If your primary concern was the mission of the Django project, you should have donated to Django directly. If it was the mission of the Mozilla project, then donating to Mozilla makes sense. That the Mozilla project determined that one of the ways in which it should expend resources to achieve its goals was to give grants to other OSS projects for specific, identified tasks does not, in any way, change that the funds are being used to support the mission of the Mozilla project.
How many companies do you know that are giving back to the open-source projects they depend on? I don't know that many, so I think those that do should be praised for it.
Django is very widely used by Mozilla as far as I'm aware. By supporting djangoproject they are improving their (Mozilla's) products. This is not entirely altruistic on Mozilla's part.
I appreciate what you are saying and would agree if Mozilla were just looking around for worthwhile FOSS projects to donate money to without any regard for whether or not they were using or intending to use them to achieve their own goals.
https://blog.mozilla.org/blog/2015/12/10/mozilla-open-source...
Such a valuable use of donations!
[1] http://www.cnn.com/2003/TECH/ptech/11/26/master.term.reut/
To me, this is one of two things. Either Mozilla is saying "We'll give you money, but you gotta get rid of words we don't like", or they're actually spending significant efforts on political correctness.
Both outcomes are frankly disheartening. I will no longer be donating to Mozilla. They're spreading themselves thin as it is, they don't have the resources to throw away money on political pointlessness.
https://supybot.buildbot.net/meetings/buildbot/2015/buildbot...
> Buildbot's MOSS application: $10k to remove slave from all code/docs, $5k to work on stability/handling shutting down EC2 slaves when buildbot master crashes/exits/restarts (djmitche, 16:39:19)
https://github.com/django/django/pull/2692
Welcome to the "fear of offence" culture. Should coin a term for that - offendiphobic?
Edit: I'd like to point out to the silent downvoters here that there's legitimate concerns being raised in this subthread about money being wasted on political correctness, which are not being addressed by any of you. If you are unable to give a counterpoint, you should rethink your position instead of downvoting based on emotions.
For every person and in every culture, offending people is considered wrong. To suggest that it doesn't matter is not a serious argument.
Apparently 'slave' doesn't offend you. It doesn't offend me either (I remember being a little uncomfortable with it long ago, when I first encountered it, but I don't notice it now). But for me to say that therefore it is not offensive to others would be ignorant and self-centered, as if the world revolves around my views and experiences. If others say they are offended then I respect that; I hope they would respect my concerns if I was offended.
Also, a common cause of discrimination is due to honest ignorance on the part of people in the dominant group. Like all humans, they are blind to things that they don't experience themselves; for example, consider law enforcement discrimination against minorities. It's happened for decades or centuries, but wasn't taken seriously until we actually had film of it due to the spread of cameras. That's another good reason to think that whether or not something bothers me is not evidence of whether it offends others.
Finally, the dominant culture in the U.S. was built at a time of widespread, accepted discrimination, and many artefacts of that time persist. People may get tired of seeing so much of it being challenged and changed, from school buildings named after slave holders; Confederate flags; and movie casts, company executives, etc. being almost all white and mostly male, etc. But being tired of the challenge and change, rather than of the discrimination, is a 'first world' problem, so to speak.
There are not "legitimate concerns being raised", it's just you, complaining that money is being spent on "political correctness", as if it's somehow bad for a non-profit to spend money to try and improve the world.
Your other points are no more legitimate than "gay used to be a perfectly good word meaning happy how can we express happiness without it" or "people don't object to me when I call them [racial slur] so it must be fine" have ever been. Addressing them directly is exactly the sort of fruitless conversation derail nobody wants.
You've spent a lot of time here being offended by political correctness, "wasted money" and alleged political motivations.
Can you think of why one sentence in a successful Buildbot grant proposal would get you so upset that you'd write thousands of words, many of which slander Mozilla, Django and Buildbot community members?
It wasn't logic that got you there, it was an emotional overreaction to something that really doesn't concern you at all except that it offends your politics.
It is a bit strange that the blog post listed the smallest donation first, which meant that the documentation change was the first task mentioned. But it's a tiny part of the whole picture.
So your argument is invalid.
In practical terms, what does this mean for those of us who use Django and Django REST Framework? Will there be a graceful transition path to the planned all-in-one model? What timescales are likely?
Also curious about which version(s) of Python are likely to see continued support.
I appreciate that some of these questions probably can't easily be answered yet, but a steer would be appreciated.
Edit: typo.
As for Python versions, there isn't any plan to drop 2.7 yet and Channels will work on it. It might be we move to Python 3 only at some point in the future, but there are no firm plans right now.
They have around 15 django libraries on GitHub as well https://github.com/mozilla?utf8=%E2%9C%93&query=django
Probably because they use it at mozilla.
I would also like to congratulate Mozilla for this program, several other great projects are being funded.
I'm new to AppEngine and I'm familiar with Django, so that would have been my first choice - but it seems like Flask, Werzkeug, Webapp2 are more popular - just curious why, or how good/bad Django is on it.
https://github.com/django-nonrel/djangoappengine
https://github.com/potatolondon/djangae
There's compromises in using the datastore - you can't do a lot of things that are dead simple with SQL, but in return you get massive scaleability. And the App Engine SDK itself can be a pain to work with, but there are also amazing features like task queues for background processing and Google Cloud Storage integration.
Other than Django I've used Bottle for very small App Engine projects. Works great, it's faster than Django, I'd still prefer Django for a typical complex web app where you need all the features.
Disclaimer: I work for Potato, which sponsors djangae development.
Oh good. $15,000 well spent.... sigh.
Really great stuff.
I've worked with Go but I would still prefer using Django to start off a new project. The rich set of libraries it provides is only rivaled by Rails among web frameworks. I've never felt I was fighting the framework and it actually taught me several good practices.
This grant shows how Django is embracing the new web and moving forward. I am happy I will be able to continue to use Django for use cases it does not cover now.