Login redirects use wrong URL when application doesn't live on web server root
|Reported by:||david.reitter@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
My application (running on 1.5rc1) sees a request whose view is decorated with @permission_required('admin') redirected to a wrong login URL.
The WSGI application (on Apache2) is mounted in a subdirectory such as www.example.com/foo/...
The redirect to the login page, given a request to www.example.com/foo/exp/manage/ then goes to:
LOGIN_URL is not set in my settings.py, as it wouldn't be portable without further ado.