You will need to adjust the LOGIN_URL (and possibly LOGIN_REDIRECT_URL) setting in your settings file. One way to do this would be to add a separate settings file for production if you don't already have one. The production settings file can then have the appropriate value for LOGIN_URL, say something like this:
LOGIN_URL = '/<your-apache-prefix>/accounts/login' On Jul 9, 4:22 am, "Mr. T" <ted.peder...@gmail.com> wrote: > In the tutorial it is simply '/accounts/login' > > This worked fine until I switched to a production apache server. My > login_required decorators were broken because the path is absolute, > login_required doesn't use the apache prefix. > > What to do? --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---