#30154: i18n: redirects to default login page if LOGIN_URL = 'login' not
specified
-------------------------------------+-------------------------------------
Reporter: Oskar Haller | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 2.1
Internationalization |
Severity: Normal | Resolution: needsinfo
Keywords: i18n LOGIN_URL | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => needsinfo
Comment:
Hi Oskar.
Can I ask for more info here please?
Off the top, I can't quite see how any issue is arriving. `LOGIN_URL` is
always set; if you don't set it it comes from the global settings (and is
`/accounts/login/`)
Then, `django.contrib.auth.views.redirect_to_login()` which is the
function in play here just fetches `settings.LOGIN_URL`, so doesn't
explain your report. (You're not hardcoding the `de` I presume...)
Is this all `@login_required` views or just `contrib.auth`?
Can you upload a minimal example project demonstrating your issue? (Or
otherwise give an actual reproduce.)
Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/30154#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 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.5bb393582e9a3bbc9815d18c4f98fceb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.