Can you give an example for a thing where with the Django ORM you have to resort to raw SQL?
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?
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.
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.