summaryrefslogtreecommitdiff
path: root/docs/ref/settings.txt
diff options
context:
space:
mode:
authorsandjio <emmasandjio@gmail.com>2024-02-19 18:24:23 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-02-20 05:29:15 +0100
commit9bd849c8d5c587209a231af643a17ec2db802ab2 (patch)
tree08c3ceb6f09dc75ec17699d9a3001205e375179e /docs/ref/settings.txt
parent5f637a8a8d847ba02493c5ce6da55e378c3f588f (diff)
Fixed #35153 -- Added note about locale name notation to FORMAT_MODULE_PATH docs.
Co-authored-by: Paul Hermans <paul.hermans@benemtech.com>
Diffstat (limited to 'docs/ref/settings.txt')
-rw-r--r--docs/ref/settings.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 98434c8833..242cf31e9f 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -1710,6 +1710,10 @@ for project locales. If not ``None``, Django will check for a ``formats.py``
file, under the directory named as the current locale, and will use the
formats defined in this file.
+The name of the directory containing the format definitions is expected to be
+named using :term:`locale name` notation, for example ``de``, ``pt_BR``,
+``en_US``, etc.
+
For example, if :setting:`FORMAT_MODULE_PATH` is set to ``mysite.formats``,
and current language is ``en`` (English), Django will expect a directory tree
like: