mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
|
@ -1378,20 +1378,6 @@ like::
|
|||
__init__.py
|
||||
formats.py
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
You can also set this setting to a list of Python paths, for example::
|
||||
|
||||
FORMAT_MODULE_PATH = [
|
||||
'mysite.formats',
|
||||
'some_app.formats',
|
||||
]
|
||||
|
||||
When Django searches for a certain format, it will go through all given
|
||||
Python paths until it finds a module that actually defines the given
|
||||
format. This means that formats defined in packages farther up in the list
|
||||
will take precedence over the same formats in packages farther down.
|
||||
|
||||
Available formats are :setting:`DATE_FORMAT`, :setting:`TIME_FORMAT`,
|
||||
:setting:`DATETIME_FORMAT`, :setting:`YEAR_MONTH_FORMAT`,
|
||||
:setting:`MONTH_DAY_FORMAT`, :setting:`SHORT_DATE_FORMAT`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue