#29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before
SessionMiddelware
------------------------------------------------+--------------------------
Reporter: Sanyam Khurana | Owner: nobody
Type: Bug | Status: assigned
Component: Internationalization | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+--------------------------
The `SessionMiddleware` sets the session cookie that may contain the
language code for Internationalization and translations.
If the LocaleMiddleware is not placed after SessionMiddleware, it won't be
able to find the language code and won't be able to `activate` the
language from HTTPRequest and use it.
So, if the order of these Middleware classes is not appropriate, a warning
should be displayed.
--
Ticket URL: <https://code.djangoproject.com/ticket/29716>
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/057.82746116bf42069eb1008fcb234d8698%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.