News for hackers. Stuff that matters.
Re:Why Django Sucks, and How we Can Fix it [slides] by cageface on Wednesday September 08, 2010 @08:27PM (#1673995)
The overwhelming dominance of Zope back in the day really held back the Python web development world and I worry the same thing is happening again with Django. Django could really benefit from a Merb breathing down its neck.

The Rails core team and the dev process is totally open and the DVCS-centric model makes it really easy for anybody to jump in and contribute. I can't see why this wouldn't work for Django too.

Re:Why Django Sucks, and How we Can Fix it [slides] by varikin on Thursday September 09, 2010 @12:04AM (#1674379)
I think there is plenty of other opinionated* people/groups in the Python web developer community to keep the Django community on their toes. For example, Flask which was mentioned in the slides we are currently discussing. Flask is from the same person/group that did Jinja, Werkzeug, and a couple other cool things. Pylons has a good user base and plenty of steam. There is also mavericks like Ian Bicking who wrote Webob and Paste (which Pylons is build on) who prefer the sans-framework approach because it is simple in Python to glue together the various libraries needed for a "framework".

Plus the addition of AppEngine with doesn't play nicely with Django due to BigTable means people look at other solutions.

Also, the Django community, especially some of the core developers do seem to respect the opinions of these other people and groups. I have seen in mailing lists and IRC where core devs agree that Django to a wrong turn here or there, but correcting that turn is a slow process. Overall, I think the philosophy of "Do it right, not right now" is a great one, and it needs to be considered with correcting mistakes.

Opinionated may not be the best term, but it is close. I really mean people that are vocal, that are respected in the community, and groups or projects that great support and communities.

*There are ways to use Django with AppEngine but all have issues. Also, AppEngine now has some sort of SQL support, but I haven't looked into it.

Re:Why Django Sucks, and How we Can Fix it [slides] by wisty on Thursday September 09, 2010 @05:59AM (#1674910)
Zope seemed to have great people behind it, and was very solidly built, but it seemed a lot more monolithic, which ended up polarizing people.

Django really benefits from the ability to swap out everything. People who hate the default libraries just find something better to use.

No migration? Use South. Some people run Django on Twisted or Tornado. There are different template libraries that people use. I'm not sure if the model layer can be swapped out so easily (without messing around with custom user authorization), but there's nothing to stop people using django models for authorization, and a separate database interface (even a no-sql one) for other data.

Re:Why Django Sucks, and How we Can Fix it [slides] by singingwolfboy on Thursday September 09, 2010 @09:52AM (#1675356)
If you're going to swap out everything, are you really using Django to begin with? Why not just use TurboGears[1], which seems based on the idea of swapping out standard components?

[1] http://www.turbogears.org/

Re:Why Django Sucks, and How we Can Fix it [slides] by cageface on Thursday September 09, 2010 @11:39AM (#1675718)
Yeah, you lose the full-stack benefits of Django pretty quickly once you start swapping out components. If I wanted a more customizable Python stack I'd pick one that was designed to work that way from the beginning.
Re:Why Django Sucks, and How we Can Fix it [slides] by bsdemon on Thursday September 09, 2010 @07:08AM (#1674972)
Do you really have used Zope and Django if you say that the former is monolithic and the latter allows easy swap out its components?
Re:Why Django Sucks, and How we Can Fix it [slides] by vosper on Thursday September 09, 2010 @01:28AM (#1674476)
I've avoided Django on AppEngine due to the vagaries of the AE datastore, and the extra time and planning it takes to get things working efficiently; I'm wary about using any framework not specifically designed for AE. Fortunately the webapp 'framework' that comes with AE is quite usable, though not exactly feature-packed.

Perhaps I'll look at Django on AE again in the future, once I have a better understanding of how to build things correctly.

EDIT: I don't think the advent of App Engine should have a major effect on Django development; my general thought when developing AE projects is to wish I was using a real server, one under my full control.

Re:Why Django Sucks, and How we Can Fix it [slides] by varikin on Thursday September 09, 2010 @09:07AM (#1675171)
I have tried Django on AppEngine using AppEngine Patch, but at this point, I don't think it is worth it till Django has non-relational database support. If I were to build something on AE right now, I will try Flask or Kay.
Re:Why Django Sucks, and How we Can Fix it [slides] by zumda on Thursday September 09, 2010 @09:43AM (#1675317)
Have you tried Django Appengine?[1] It works pretty well and supports most things in django (including the admin interface).

[1] http://www.allbuttonspressed.com/projects/djangoappengine

Re:Why Django Sucks, and How we Can Fix it [slides] by vosper on Thursday September 09, 2010 @07:38PM (#1677348)
I had wondered whether that works, I'll have a look at it for the next job. Anything with a working admin system will make my day.
Re:Why Django Sucks, and How we Can Fix it [slides] by varikin on Thursday September 09, 2010 @01:31PM (#1676127)
I haven't, but I am not currently doing anything major on GAE right now.
Re:Why Django Sucks, and How we Can Fix it [slides] by cageface on Thursday September 09, 2010 @11:37AM (#1675708)
I've built a couple of small Flask apps and I like it too. Django doesn't really seem to have a direct competitor in the same sense that Merb was for Rails though. Merb and Rails provided a similar developer experience but had some significantly different architectures. Things like Pylons and Turbogears are much more roll-your-own than Django and microframeworks like Flask are great for what they cover but usually app requirements will dictate Django vs Web.py, for example, and not developer preference.
Re:Why Django Sucks, and How we Can Fix it [slides] by zzzeek on Wednesday September 08, 2010 @11:24PM (#1674299)
Django has plenty of not-so-alternative projects breathing down its neck and they're well aware they have to keep up. Personally I think it helps the rest of us to some degree for Django to be out at the front accommodating all the crushing masses of new users while smaller projects, not as quickly discovered (but discovered enough) enjoy moderate but well-tempered userbases.
Re:Why Django Sucks, and How we Can Fix it [slides] by alttab on Wednesday September 08, 2010 @09:05PM (#1674073)
I agree that the Rails model seems to be working well for them (especially since seeing Rails 3), but it always comes down to the accepted decorum of the community. Its really up to them.
Re:Why Django Sucks, and How we Can Fix it [slides] by jnoller on Thursday September 09, 2010 @12:34PM (#1675912)
Anyone can contribute to Django right now; just like anyone can contribute to Rails.

Only a group of core maintainers can merge those contributions into a core, shipping release. So how does the DVCS make that core think, work or release any differently?

Re:Why Django Sucks, and How we Can Fix it [slides] by varikin on Thursday September 09, 2010 @01:39PM (#1676153)
I think the DVCS issue is not part of "what is wrong with Django."

Like you said, anyone can contribute, and core developers will be responsible for reviewing and integrating those contributions, regardless of the VCS. There are even unofficial mirrors on Github and Bitbucket if someone wants to go that route.

All that said, if Git or Hg (or other DVCS) would make some of the developers tasks easier, like reviewing patches (in the form of pull requests on Github), managing branches, tagging releases, etc, I think it is a worthwhile switch.

Edit: Changed core developers to developers in the last paragraph/run-on sentence because it might benefit all contributors.

Re:Why Django Sucks, and How we Can Fix it [slides] by jnoller on Thursday September 09, 2010 @01:56PM (#1676206)
Except that if the Django core developers thought that using Git, mercurial, or github would grossly improve their workflow, don't you think they'd use it?

They may be perfectly comfortable with their current tools - we agree though, this is not a source control issue. It's is a personnel, and social issue. DVCSes are not magical, and github isn't a cure-all.

If the problem is with the people; we have to fix the people, get new ones - not change the tools.