Class-based Generic Views: patterns and anti-patterns
Django's class-based views API — landed in Django 1.3 — offers a very powerful yet complex way to build Django views. This talks aims at explaining the internals of the API and giving practical advices for building class-based views. Crowd-sourced examples of patterns and anti-patterns will be shown and explained.
- The view contract in Django
- Other class-based stuff in Django
- API internals
- Mixins and the MRO
- Interesting uses of CBVs
- How to shoot yourself in the foot :)
About Bruno Renié
Bruno is a French developer who learned Python and Django when his student life left him enough free time. He now builds web APIs and mobile-oriented websites for a young company based in Lausanne, Switzerland. In his free time, he likes playing with maps, spatial data and real-time stuff, as well as skiing and climbing.