~/talk

The Beauty of ViewSets in Django Rest Framework

Talkat DjangoCon US 2017 · 2017-08-13..08-18· [python]
slides:none on file

Demonstrates that using Django Rest Framework ViewSets actually shrinks endpoints—claims go from 15 minutes down to less than 5 minutes and the demo cuts code from 59 lines to 22 lines—by converting function‑based views to class‑based views to a single ViewSet with DRF serializers, filters, authentication and the default router. Shows a working API, URL routing, filtering examples, and a pragmatic test pattern that asserts ViewSet attributes rather than full integration tests.

AI-written summary · about

  1. 0:00Start
  2. 0:27Who Am I
  3. 6:21Demo
  4. 7:34Django Model
  5. 12:15Django Filters
  6. 14:45Coin Detail View
  7. 17:47Custom Router
  8. 20:17Q & a
~/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.