Effective Django
summary
Gives concrete rules and hands‑on fixes: use virtualenv/Vagrant and pinned requirements, prefer RequestFactory and factory_boy for fast unit tests vs Django test client for slower integration tests, and prefer values_list/select_related to avoid ORM costs. Demonstrates a real middleware gotcha (storing per‑request state on self leaking locales across workers), measures the ORM at 40,000 objects/sec instantiation, and explains the get_or_create race on MySQL and practical workarounds.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 1:18Cohesion Rules
- 1:56Effective Django
- 4:39Application Environment
- 8:22Requirements
- 11:45Scaffolding
- 12:30Contact Manager
- 13:27Manage
- 13:57URL File
- 15:56URL Names
- 16:15Views
- 17:38Test Boot
- 21:05Test Client
- 23:05Request Factory
- 23:41Test Models
- 24:07Middleware
- 29:29Classbased views
- 30:34Template views
- 31:27URL comp
- 32:15Response class
- 32:52Form class
- 35:17Object class
- 40:33Object Manager
- 43:42Testing Models
- 47:24Performance
- 49:37Bond
- 50:59Manager
related talks
53mDjango productivity tips and tricks
53mDjango productivity tips and tricks
41mProduction Django: Building a Highly Scalable, Secure Django Site
21mBuilding maintainable Django projects: the difficult teenage years
32mEasy, Breezy, Beautiful... Django Unit Tests with Colleen Dunlap
47mHigh Performance Django at Ten: Old Tricks & New Picks
33mThe D is Silent: Challenges in Teaching Django
25mHunting for Treasure in Django
