mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed #23667 -- Incorrect settings reference for language cookie.
Thanks jamesbeith for the report.
This commit is contained in:
parent
a5c77417a6
commit
bedd439297
@ -1680,7 +1680,7 @@ standard domain cookies, existing user cookies that have the old domain
|
||||
will not be updated. This will result in site users being unable to switch
|
||||
the language as long as these cookies persist. The only safe and reliable
|
||||
option to perform the switch is to change the language cookie name
|
||||
permanently (via the :setting:`SESSION_COOKIE_NAME` setting) and to add
|
||||
permanently (via the :setting:`LANGUAGE_COOKIE_NAME` setting) and to add
|
||||
a middleware that copies the value from the old cookie to a new one and then
|
||||
deletes the old one.
|
||||
|
||||
@ -1716,7 +1716,7 @@ setting to use a deeper path than it previously used, existing user cookies that
|
||||
have the old path will not be updated. This will result in site users being
|
||||
unable to switch the language as long as these cookies persist. The only safe
|
||||
and reliable option to perform the switch is to change the language cookie name
|
||||
permanently (via the :setting:`SESSION_COOKIE_NAME` setting), and to add
|
||||
permanently (via the :setting:`LANGUAGE_COOKIE_NAME` setting), and to add
|
||||
a middleware that copies the value from the old cookie to a new one and then
|
||||
deletes the one.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user