News for hackers. Stuff that matters.
Re:Django 1.7 RC1 by megaman821 on Friday June 27, 2014 @10:22AM (#7954016)
SQLAlchemy is designed for people who know SQL already and want a safe and convenient way to use it from Python.

The Django ORM is designed for people that want their Python data objects to be persisted to a back-end data store.

Both of these things have their place. The problem with the Django ORM is sometimes you need to do something slightly more complicated than what it supports and your back to raw SQL. These scenarios are really common, 90% of Django project have raw SQL in them.

Re:Django 1.7 RC1 by crdoconnor on Saturday June 28, 2014 @06:03AM (#7957878)
SQLAlchemy uses the data mapper pattern whereas django ORM uses active record - that's the main difference. Neither one is really 'better', there are advantages to both approaches:

http://russellscottwalker.blogspot.sg/2013/10/active-record-...

The main advantage to django ORM in my opinion is 'less code', although it does create an excessive coupling between your persistence / model layer. Whether that is something you can live with or not is up to your project's requirements.

I'm pretty happy to work with both. Just don't make me use RoR!

Re:Django 1.7 RC1 by acjohnson55 on Monday June 30, 2014 @08:13AM (#7964636)
I've got to disagree with the 90% figure. The vast majority of projects I've seen (which are typically pretty straightforward from a data modeling perspective) rely only on the ORM.
Re:Django 1.7 RC1 by akx on Friday June 27, 2014 @02:27PM (#7955513)
Maybe 5% of the Django projects I've been involved in contain raw SQL.