On 18 oct, 18:12, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sat, Oct 18, 2008 at 10:22 AM, Heather <[EMAIL PROTECTED]> wrote: > > Well, after trying to work this out a bit more, it looks like a nice > > solution is to make a middleware class and use the process_views() but > > I'm not quite at the answer yet. > > Generally, I don't consider the URLs for an application to be set in > stone; especially with views which are meant to be configurable > through arguments passed in the URLConf, wiring up a few patterns of > your own is something to be actively encouraged. So if you want > login_required, set up the URLs so you'll have it.
Indeed. But , OTHO, having to copy/paste a whole urls.py just to a add a simple decorator on the view functions is not really DRY. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---