Re: Do you combine you Django decorators?

2011-04-04 Thread andy
Thanks man this is even better. I have though about doing something like this in the past but I thought using signals was how django did things like this. I've been using middleware and never even though about what they really do or how they work -- that's bad. On Apr 4, 2:20 am, Sam Walters

Re: Do you combine you Django decorators?

2011-04-04 Thread Sam Walters
Hi Andy 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

Do you combine you Django decorators?

2011-04-03 Thread andy
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.