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 somet
settings.py
LOGOUT_URL=""
2009/7/9 Mr. T :
>
> 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
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?
--~--~-~--~~~---~--~~
Y
3 matches
Mail list logo