I dont combine them... however:
I was using a couple of decorators for almost every view in one
project. Ended up putting them in middleware.
Are these decorators for every view? Maybe you should consider middleware too.
cheers
sam_w
On Mon, Apr 4, 2011 at 3:26 AM, andy <flowartic@gmail.com> wrote:
> Do you use several Django decorators for your views or do you combine
> the common ones into one or two custom decorators?
>
> This is just something that I have been a bit curious about for a
> while now as I tend to hate using more that one decorator per view. I
> have often thought about combining them. Thought I have not done so as
> yet. I hate looking at it but it seem more flexible nonetheless.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment