4 ms·
People have been using the term 'class-based views' to describe the new feature but am I right in thinking this only affects generic views?
by andybak 16y ago
People have been using the term 'class-based views' to describe the new feature but am I right in thinking this only affects generic views?
- izak30 16y agoWell, it affects generic views, yes. They also have several mixins that you can use in other views.
- streeter 16y agoNo, you can make your own class based views with the 1.3 codebase. The docs describe them as replacing Generic Views, but nothing stops you from creating your own class hierarchy that inherits from the base TemplateView (http://docs.djangoproject.com/en/1.3/ref/class-based-views/#simple-generic-views http://docs.djangoproject.com/en/1.3/ref/class-based-views/#...)