Fixed #26940 -- Removed makemessages from no_settings_commands whitelist

As makemessages uses several settings for proper run (FILE_CHARSET,
LOCALE_PATHS, MEDIA_ROOT, and STATIC_ROOT), we should require settings
configuration for this command.
This commit is contained in:
Claude Paroz 2016-08-07 20:05:07 +02:00
parent 74105b2636
commit a6baada7bd
2 changed files with 4 additions and 2 deletions

View File

@ -308,8 +308,7 @@ class ManagementUtility(object):
no_settings_commands = [
'help', 'version', '--help', '--version', '-h',
'compilemessages', 'makemessages',
'startapp', 'startproject',
'startapp', 'startproject', 'compilemessages',
]
try:

View File

@ -374,6 +374,9 @@ Miscellaneous
called a second time before calling
:func:`~django.test.utils.teardown_test_environment`.
* The :djadmin:`makemessages` command now requires configured settings, like
most other commands.
.. _deprecated-features-1.11:
Features deprecated in 1.11