#30154: i18n: redirects to default login page if LOGIN_URL = 'login' not
specified
--------------------------------------+------------------------------------
Reporter: Oskar Haller | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: i18n LOGIN_URL | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Carlton Gibson):
* component: Internationalization => Documentation
* has_patch: 0 => 1
* version: 2.1 => master
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
OK, I see.
The issue is that `/accounts/login/`, not being a named URL pattern
doesn't go through the whole `i18n_patterns()` dance, so
`django.shortcuts.resolve_url()` doesn't get a i18n'd version.
There's not much we can do about this at the behaviour level. I've opened
a [https://github.com/django/django/pull/10928 PR] on the documentation to
hopefully clarify it.
Thanks for the report, and the sample project!
--
Ticket URL: <https://code.djangoproject.com/ticket/30154#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.bc5da1c24926eaa5bb252da73cdfc638%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.