~/talk

"Django Best Practices"

Talkat IndyPy Python Web Conf 2019 · on Friday, 2019-08-23· [python, developer-experience]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 7:46Code organization
  3. 13:59Model and form design
  4. 23:50Django forms best practices
  5. 27:42Model managers
  6. 30:17Views and refactoring
  7. 33:06Fake data and performance
  8. 36:08Query optimization
  9. 38:21Postgres performance tuning
  10. 42:21Frontend enhancements
  11. 46:52Django success at Ivy Tech
  12. 47:58Upgrading Django
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.