11.18.2011

Decorating every view at the url.py level

I think of authentication and authorization usually in entire sections of a site/url tree. So it always annoyed me that there was no mechanism in django to decorate entire sections of a site at the urls.py level.

So, I came up with the following code that does just that.