mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #15318 -- Added settings for language cookie max-age, path, domain
Introduced a number of settings to configure max-age, path, and domain for the language cookie: LANGUAGE_COOKIE_AGE, LANGUAGE_COOKIE_PATH and LANGUAGE_COOKIE_DOMAIN. Thanks sahid for the suggestion.
This commit is contained in:
parent
c679cb7f60
commit
8c98f39624
6 changed files with 109 additions and 1 deletions
|
@ -1575,6 +1575,20 @@ which returns the language used in the current thread,
|
|||
for the current thread, and ``django.utils.translation.check_for_language()``
|
||||
which checks if the given language is supported by Django.
|
||||
|
||||
Language cookie
|
||||
---------------
|
||||
|
||||
A number of settings can be used to adjust language cookie options:
|
||||
|
||||
* :setting:`LANGUAGE_COOKIE_NAME`
|
||||
|
||||
.. versionadded:: 1.7
|
||||
|
||||
* :setting:`LANGUAGE_COOKIE_AGE`
|
||||
* :setting:`LANGUAGE_COOKIE_DOMAIN`
|
||||
* :setting:`LANGUAGE_COOKIE_PATH`
|
||||
|
||||
|
||||
Implementation notes
|
||||
====================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue