Demystifying Mixins with Django
summary
Mixins are ordinary Python classes not magic and work by wiring behavior into Django class based views; a concrete login required mixin is implemented by overriding dispatch override to raise PermissionDenied and then calling super which actually protects pages; external packages like Django Braces and upcoming Django 1.9 mixins replace most handrolled code; a demo shows a dynamic class swap that mutates instances (works differently in Python 2 vs 3) and warns that two mixins is common while six becomes a nightmare.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:51When to use mixins?
- 2:03Properties
- 3:42base class
- 12:09django-braces
- 12:41Decorators
- 13:01Good news everyone!
- 13:41Runtime magic
- 16:52Recap








