3 ms·
there Queryset.query but it's not obvious unless you read every line of the docs
by agumonkey 3y ago
there Queryset.query but it's not obvious unless you read every line of the docs
- airstrike 3y agothat's a pretty basic thing to spot in the docs and Django docs are actually godtier
- agumonkey 3y agoI have 90% allergy to their doc style. The only worse are old javadocs. I like python stdlib model, so I assumed it would be as nice.. but here it's a blend of newb info (oh look Forms!) and partial technical description. To the point that every time you ask something online.. people tell you straight away try ccbv or "read django source", which should be the first things listed on their website.
- airstrike 3y agoyou may be mixing up their `ref` type docs and the `topic` type docs which are more tutorial-y. compare - https://docs.djangoproject.com/en/5.0/topics/db/queries/ https://docs.djangoproject.com/en/5.0/topics/db/queries/ - https://docs.djangoproject.com/en/5.0/ref/models/querysets/ https://docs.djangoproject.com/en/5.0/ref/models/querysets/
- agumonkey 3y agoEven the refs didn't fit my needs for a comprehensive structure of the framework. It's cultural issue I think.
- jd3 3y agoalso manage.py shell_plus --print-sql will print the sql after each command you enter you can also print qs.query, qs.explain("analyze"), etc etc