2 ms·
How did django-annoying (https://bitbucket.org/offline/django-annoying https://bitbucket.org/offline/django-annoying) not make the list? I find the stuff in dja
by streeter 15y ago
How did django-annoying (https://bitbucket.org/offline/django-annoying https://bitbucket.org/offline/django-annoying) not make the list? I find the stuff in django-annoying to be crucial on any Django project I do (the render_to() and @ajax_request decorators especially).
- izak30 15y agoIf 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.