summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2021-09-09 07:42:05 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-14 12:05:43 +0200
commit676bd084f2509f4201561d5c77ed4ecbd157bfa0 (patch)
treebc8dfe6748a6bfc5fe8c728a5f825dfff575cb56 /docs/ref
parent04e023e38331d6717af1cbd8da4926af612f7831 (diff)
Fixed #32873 -- Deprecated settings.USE_L10N.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/settings.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index cc58192bd4..12d89142d1 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -2774,7 +2774,7 @@ See also :setting:`LANGUAGE_CODE`, :setting:`USE_L10N` and :setting:`USE_TZ`.
``USE_L10N``
------------
-Default: ``False``
+Default: ``True``
A boolean that specifies if localized formatting of data will be enabled by
default or not. If this is set to ``True``, e.g. Django will display numbers and
@@ -2782,10 +2782,15 @@ dates using the format of the current locale.
See also :setting:`LANGUAGE_CODE`, :setting:`USE_I18N` and :setting:`USE_TZ`.
-.. note::
+.. versionchanged:: 4.0
- The default :file:`settings.py` file created by :djadmin:`django-admin
- startproject <startproject>` includes ``USE_L10N = True`` for convenience.
+ In older versions, the default value is ``False``.
+
+.. deprecated:: 4.0
+
+ This setting is deprecated. Starting with Django 5.0, localized formatting
+ of data will always be enabled. For example Django will display numbers and
+ dates using the format of the current locale.
.. setting:: USE_THOUSAND_SEPARATOR