~/talk

What You Should Know About Django REST Framework

Talkat PyCascades 2021 · 2021-02-19..02-21· [web-platform, python]
slides:none on file

Covers concrete, usable DRF mechanics: how ModelViewSet composes five mixins to give six working CRUD endpoints from a few lines of code; how to override get_queryset, get_object, and get_serializer_context to filter per-request and pass computed data into serializers; how to override create/perform_create to save the instance and return a different serializer; and how the @action decorator adds a /books/featured endpoint without touching urls.py — all demonstrated as working patterns.

AI-written summary · about

  1. 0:00Start
  2. 3:20What You Should Know About Django REST Framework
  3. 4:05ClassyDRF
  4. 6:05ModelViewSet = set of views to
  5. 7:40This ViewSet...
  6. 9:22What objects are you working with?
  7. 10:51When to override get_queryset()
  8. 13:18When to override get_serializer_context()
  9. 21:17DRF mixes and matches for you
~/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.