4 ms·
But now you've got the issue that the code needs to match the DB. Django takes care of this for you. It's really quite nice.
by bb88 6y ago
But now you've got the issue that the code needs to match the DB. Django takes care of this for you. It's really quite nice.
- jordic 6y agoThat's the trade-off if you decouple the dB from the web framework you have to take care of both.. :) anyway, I prefer to trust the dB (real data on it) that a bunch of complicated things on the Django side.. (I suspect that happened something similar to me when I started reviewing crazy (shoot your food) class based elaborations..
- giancarlostoro 6y agoYou can always tell Django's ORM not to manage any of your data and write all your queries. You can also tell Django to give you the query it generates, tweak it (if / as necessary) and run from there.
- bb88 6y agoBut why? Granted if you have super complex queries, sure. But 95-99% of the queries are simple typically.