Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How did 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).


If you like render_to, you might also like TemplateView http://django.me/TemplateView Class Based Views are awesome when you get the hang of them.


I 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.


How 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.





Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: