Re: [Django] #12794: Interaction between sessions and django.views.i18n.set_language causes caching errors

11 views
Skip to first unread message

Django

unread,
May 24, 2011, 3:14:14 PM5/24/11
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Component:
Milestone: | Internationalization
Version: 1.1 | Severity: Normal
Resolution: | Keywords: cache i18n
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
-------------------------------------+-------------------------------------
Changes (by raymond.penners@…):

* cc: raymond.penners@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 7, 2011, 2:33:22 PM6/7/11
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Component:
Milestone: | Internationalization
Version: 1.1 | Severity: Normal
Resolution: | Keywords: cache i18n
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
-------------------------------------+-------------------------------------

Comment (by raymond.penners@…):

For those interested, you can use the following Django app to have the
language stored in a cookie as suggested.

https://github.com/pennersr/django-cooki18n

--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:7>

Django

unread,
Jul 8, 2011, 10:59:28 AM7/8/11
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Component:
Milestone: | Internationalization
Version: 1.1 | Severity: Normal
Resolution: | Keywords: cache i18n
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Changes (by pennersr):

* has_patch: 0 => 1
* ui_ux: => 0


Comment:

I have attached a patch that stops Django from storing the language in the
session.

A decision is needed on whether support for storing the language in the
session is to be completely dropped, or whether it is to be made
configurable via settings. For now, the old behaviour has been put below
an "if False:" so that it can be easily reinstantiated.

--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:8>

Django

unread,
Jul 13, 2011, 7:00:20 PM7/13/11
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Component:
Milestone: | Internationalization
Version: 1.1 | Severity: Normal
Resolution: | Keywords: cache i18n
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------

Comment (by ramiro):

#16461 was a duplicate, reported similar problems but with browsers
caches.

--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:9>

Django

unread,
Feb 23, 2013, 9:42:29 AM2/23/13
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Version: 1.1
Component: | Resolution:
Internationalization | Triage Stage: Accepted
Severity: Normal | Needs documentation: 1
Keywords: cache i18n | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by jezdez):

* needs_better_patch: 0 => 1
* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:10>

Django

unread,
Mar 3, 2013, 8:55:56 PM3/3/13
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… | Status: new
Type: Bug | Version: 1.1
Component: | Resolution:
Internationalization | Triage Stage: Accepted
Severity: Normal | Needs documentation: 1
Keywords: cache i18n | Patch needs improvement: 1
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by ramiro):

See also #15902 and ​http://groups.google.com/d/topic/django-
developers/8THmJSioj4U/discussion.

--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:11>

Django

unread,
Jan 14, 2021, 2:47:37 PM1/14/21
to django-...@googlegroups.com
#12794: Interaction between sessions and django.views.i18n.set_language causes
caching errors
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
alessandro.gudio+bugzilla@… |
Type: Bug | Status: closed
Component: | Version: 1.1
Internationalization |
Severity: Normal | Resolution: invalid

Keywords: cache i18n | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

`set_language()` doesn't store user's language in the session anymore, see
d134b0b93ee10a2128c595997cbc6022c4a982f7.

--
Ticket URL: <https://code.djangoproject.com/ticket/12794#comment:12>

Reply all
Reply to author
Forward
0 new messages