On Tue, 2007-02-20 at 10:09 -0800, ScottB wrote: > Hi Frank. > > > is there any reason that the login_required decorator doesn't have the > > login_url parameter? > > If you want to set the login url to something other than the default / > accounts/login/ you add this to your settings.py: > > from django.contrib.auth import LOGIN_URL > LOGIN_URL = '/accounts/signin/'
There's also a patch in ticket #3185 that I'm going to commit in the next day or two in order to make this (and a couple of other login-related URLs) directly configurable via settings.py. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---