In this video, we explore advanced topics related to using the Django ORM. We cover concepts like Q Objects, F Expressions, Aggregations, and Annotations. We'll also discuss how to use these features effectively for complex queries, allowing us to accomplish a great deal using only the ORM.
BOOK YOUR PYCON UGANDA TICKET:
https://ug.pycon.org/2024
REFERENCES:
https://docs.djangoproject.com/en/5.0/topics/db/aggregation/
https://docs.djangoproject.com/en/5.0/ref/models/expressions/
https://docs.djangoproject.com/en/5.0/ref/models/querysets/
NOTES ON FIELD LOOKUPS:
https://jod35jon.github.io/notes/fieldlookups.html
PLEASE DONATE TO MY CHANNEL:
https://buymeacoffee.com/jod35
Timestamps:
(00:00:00) Introduction
(00:02:24) Basic Queries
(00:08:24) Field LookUps
(00:14:16) Q-Objects
(00:23:49) Aggregation
(00:26:48) F-Expressions
(00:32:49) Annotations
(00:37:51) Pycon Uganda
(00:38:30) Conclusion