~/talk

Effective Django

Talkat PyOhio 2012 · 2012-07-28..07-29· [python, django]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:18Cohesion Rules
  3. 1:56Effective Django
  4. 4:39Application Environment
  5. 8:22Requirements
  6. 11:45Scaffolding
  7. 12:30Contact Manager
  8. 13:27Manage
  9. 13:57URL File
  10. 15:56URL Names
  11. 16:15Views
  12. 17:38Test Boot
  13. 21:05Test Client
  14. 23:05Request Factory
  15. 23:41Test Models
  16. 24:07Middleware
  17. 29:29Classbased views
  18. 30:34Template views
  19. 31:27URL comp
  20. 32:15Response class
  21. 32:52Form class
  22. 35:17Object class
  23. 40:33Object Manager
  24. 43:42Testing Models
  25. 47:24Performance
  26. 49:37Bond
  27. 50:59Manager
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.