~/talk

Django REST Framework: Moving Past the Tutorial to Production

Talkat DjangoCon US 2018 · 2018-10-14..10-19· [python, testing]
slides:none on file

Practical checklist for shipping a DRF API: how to embed related fields and three concrete options for writable nested data with tradeoffs and examples; when to use different serializers for list/detail and per-user serializers plus matching queryset choices; when to use select_related vs prefetch_related and how tests count queries to catch N+1s; using rest-framework-filters, django-rest-swagger, make docs and a cookiecutter template; django-simple-history for auditing and viewset actions for model‑scoped endpoints.

AI-written summary · about

  1. 0:00Start
  2. 3:20Recap: Serializers
  3. 12:44Creating a Separate Write-only Field
  4. 15:01Creating a Separate Relationship Field
  5. 23:02The detail argument
  6. 27:15Documentation Options
  7. 30:03Bonus: useful libraries
~/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.