Re: [Django] #29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before SessionMiddelware

2018-08-28 Thread Django
#29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before
SessionMiddelware
-+-
 Reporter:  Sanyam Khurana   |Owner:  Sanyam
 |  Khurana
 Type:  Bug  |   Status:  closed
Component:   |  Version:  2.1
  Internationalization   |
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Claude Paroz):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 See ticket #15902, the language is now (from Django 2.1) also stored in a
 cookie, that's why I think the issue you mention should not happen again
 in the future.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.e3fdd1271fa72d371db9ed9702cbd268%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before SessionMiddelware

2018-08-27 Thread Django
#29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before
SessionMiddelware
-+-
 Reporter:  Sanyam Khurana   |Owner:  Sanyam
 |  Khurana
 Type:  Bug  |   Status:  assigned
Component:   |  Version:  2.1
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Sanyam Khurana):

 * owner:  nobody => Sanyam Khurana


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.8ac54d87cb7b17a3f7d67baaee493cee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #29716: Add a warning in LocaleMiddleware is after CommonMiddleware or before SessionMiddelware

2018-08-27 Thread Django
#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: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
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.