"Django Best Practices"
summary
Ivy Tech runs 30 Django apps and shares concrete practices: use factory_boy to load 500k fake rows locally to surface scale problems, run the Django Debug Toolbar to keep query counts under ~30 and responses under 100ms, and use Postgres + pg_stat_statements to find hot queries — adding a concurrent index cuts a 22ms hotspot to ~0.5ms. Organize code into services, utils, model managers and put validation and business logic on forms and models.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 7:46Code organization
- 13:59Model and form design
- 23:50Django forms best practices
- 27:42Model managers
- 30:17Views and refactoring
- 33:06Fake data and performance
- 36:08Query optimization
- 38:21Postgres performance tuning
- 42:21Frontend enhancements
- 46:52Django success at Ivy Tech
- 47:58Upgrading Django
