Django Views: Functions, Classes, and Generics
summary
Explains how HTTP methods map to Django views with concrete code: shows code converting function to class and handling get post head options, demonstrates decorator_plus and the require-style shortcuts so function views get the same method handling as class views, links to GitHub and an IPython notebook and demos using tnet. Covers history, when generic class-based views save work, when shared behavior favors object views, and what actually changes when a view is extended.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 2:39Python callables
- 4:28HTTP basics
- 6:49Django views overview
- 9:46Views and HTTP
- 11:42History of views
- 16:19Function-based views
- 21:23Class-based views
- 25:23Generic class-based views
- 28:31Tools and resources
- 31:55Q&A and conclusion
related talks
28mModel-View-Controller (MVC) through the ages and in Django
28mSaved you a click (or three): Supercharging the Django admin with actions and views
01h 06mEffective Django
46mIntroducing Django REST framework
29mPushing The Pony's Boundaries - Django Admin Customization
45mKeynote: All The Ways To Use Django with Zags
21mBuilding maintainable Django projects: the difficult teenage years
25mPrototypes Sharing and Services Full Django in a Single File
