News for hackers. Stuff that matters.
Re:Discover Flask by lucian1900 on Sunday February 21, 2016 @11:35AM (#11145119)
If Django replaced their very limited ORM for SQLAlchemy, I'd agree.

There are just so many apps that end up requiring queries complex enough that with the Django ORM you have to resort to raw SQL. With SQLAlchemy, you can express any SQL you want without giving up composition.

Re:Discover Flask by ivoras on Sunday February 21, 2016 @01:16PM (#11145657)
Can you give an example for a thing where with the Django ORM you have to resort to raw SQL?
Re:Discover Flask by collyw on Sunday February 21, 2016 @01:31PM (#11145738)
Conditional aggregates were a problem until 1.8 or 1.9. Joins on more that one field would be another.
Re:Discover Flask by lucian1900 on Sunday February 21, 2016 @02:52PM (#11146150)
Arbitrary explicit joins make a lot of data reporting much easier.
Re:Discover Flask by johnmaguire2013 on Sunday February 21, 2016 @01:09PM (#11145632)
Why not just use SQLAlchemy with Django and ignore the built-in ORM?
Re:Discover Flask by collyw on Sunday February 21, 2016 @01:18PM (#11145673)
Because the Admin and other features won't work?
Re:Discover Flask by true_religion on Sunday February 21, 2016 @05:32PM (#11146957)
In order to get the admin and other features, all you need to do is define your models in Django's system.

After that you can use SqlAlechemy as a side channel, just like a lot of people use NoSQL databases.