The Beauty of ViewSets in Django Rest Framework
summary
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
chapters (8)
- 0:00Start
- 0:27Who Am I
- 6:21Demo
- 7:34Django Model
- 12:15Django Filters
- 14:45Coin Detail View
- 17:47Custom Router
- 20:17Q & a
related talks
27mWhat You Should Know About Django REST Framework
23mDjango REST API - So easy you can learn it in 25 minutes
27mDjango REST Framework: Taking your API to the next level
33mDjango REST Framework: Moving Past the Tutorial to Production
38mDjango Rest Framework + Redux
40mClass-based Views: Past, Present and Future
01h 06mEffective Django
29mSleeping with the enemy..
