ORM: The Sequel
summary
An existing Django project is explored using the django shell and automatic imports from django extensions plus graphviz to generate a UML PNG of models, map tables and foreign keys, and trace a broken emoji image filename. Queries reveal a display limit of 21, a true result count of 44, and a Cartesian join mistake that inflates results to ~700. The ORM techniques shown include Q objects, annotate, .query inspection and avoiding raw SQL while reproducing the bug and fixing the data.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:31The Django Shell
- 3:50Django Shell
- 4:53List All the Tables in a New Django Project
- 7:52Add a Where Clause
- 8:36Joins
- 22:01Bug Hunting








