#19658: Login redirects use wrong URL when application doesn't live on web
server
root
---------------------------------+--------------------------------------
Reporter: david.reitter@… | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by anonymous):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
For what it's worth, user_passes_test in contrib.auth.decorators has
"/accounts/login/" as resolved_login_url.
login_url is None. settings.LOGIN_URL=/accounts/login/, which is the
default.
Is hard-coding LOGIN_URL, LOGOUT_URL and LOGIN_REDIRECT_URL in
conf/global_settings.py the best one can do?
I tried setting FORCE_SCRIPT_NAME in settings.py.
os.environ['SCRIPT_NAME'] does not seem to exist (Apache/2.2.15 Unix).
I also don't see how these variables will be taken into account when
figuring resolved_login_url. So this might be a hard bug.
--
Ticket URL: <https://code.djangoproject.com/ticket/19658#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.