diff options
| author | sandjio <emmasandjio@gmail.com> | 2024-02-19 18:24:23 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-20 06:11:51 +0100 |
| commit | e72fdc850a7c7703a5e019de127a4256bc136479 (patch) | |
| tree | 90bd6babd46753dbb3e62de15016a480c1f76ebd | |
| parent | 23c7cbfd241bb4287d042e8634a9c27ed3b7490e (diff) | |
[5.0.x] Fixed #35153 -- Added note about locale name notation to FORMAT_MODULE_PATH docs.
Co-authored-by: Paul Hermans <paul.hermans@benemtech.com>
Backport of 9bd849c8d5c587209a231af643a17ec2db802ab2 from main
| -rw-r--r-- | docs/ref/settings.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index a7b789c3f6..48392d55a1 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1728,6 +1728,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: |
