3 ms·
If you like render_to, you might also like TemplateView http://django.me/TemplateView http://django.me/TemplateView Class Based Views are awesome when you get t
by izak30 15y ago
If you like render_to, you might also like TemplateView http://django.me/TemplateView http://django.me/TemplateView Class Based Views are awesome when you get the hang of them.
- tuxcanfly 15y agoHow do you add decorators to a class based view? I find this annoying: dashboard = login_required(DashboardView.as_view()) Takes the fun out of decorators for me.
- izak30 15y agohttps://gist.github.com/1075119 https://gist.github.com/1075119
- streeter 15y agoI tested out the class based views in Django 1.3, but decided that I didn't like the complexity that all the MixIns added. I was constantly having to remember which things each MixIn added to my class. I found it simpler to just do function based views with several decorators.