mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Revert "Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of modules."
This reverts commit 950b6de16a
.
This commit is contained in:
parent
a1f0c4c697
commit
5abc811a40
11 changed files with 9 additions and 103 deletions
|
@ -154,20 +154,11 @@ Django provides format definitions for many locales, but sometimes you might
|
|||
want to create your own, because a format files doesn't exist for your locale,
|
||||
or because you want to overwrite some of the values.
|
||||
|
||||
To use custom formats, specify the path where you'll place format files first.
|
||||
To do that, just set your :setting:`FORMAT_MODULE_PATH` setting to the package
|
||||
where format files will exist, for instance::
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
The ability to specify FORMAT_MODULE_PATH as a list was added. Previously,
|
||||
only a single string value was supported.
|
||||
|
||||
To use custom formats, specify the path where you'll place format files
|
||||
first. To do that, just set your :setting:`FORMAT_MODULE_PATH` setting to
|
||||
the package where format files will exist, for instance::
|
||||
|
||||
FORMAT_MODULE_PATH = [
|
||||
'mysite.formats',
|
||||
'some_app.formats',
|
||||
]
|
||||
FORMAT_MODULE_PATH = 'mysite.formats'
|
||||
|
||||
Files are not placed directly in this directory, but in a directory named as
|
||||
the locale, and must be named ``formats.py``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue