1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #35153 -- Added note about locale name notation to FORMAT_MODULE_PATH docs.

Co-authored-by: Paul Hermans <paul.hermans@benemtech.com>
This commit is contained in:
sandjio 2024-02-19 18:24:23 +01:00 committed by Mariusz Felisiak
parent 5f637a8a8d
commit 9bd849c8d5

View File

@ -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: