diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-08-07 20:05:07 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-08-08 19:52:57 +0200 |
| commit | a6baada7bdf0c2b14045ee86364f9401c7b91b7c (patch) | |
| tree | fdfd8035bb49307c700320f5751b30b62eea44f7 | |
| parent | 74105b26365c6e862f347656cc085faf18cc0bb1 (diff) | |
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.
| -rw-r--r-- | django/core/management/__init__.py | 3 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py index 739dc25297..a49ffdd3b8 100644 --- a/django/core/management/__init__.py +++ b/django/core/management/__init__.py @@ -308,8 +308,7 @@ class ManagementUtility(object): no_settings_commands = [ 'help', 'version', '--help', '--version', '-h', - 'compilemessages', 'makemessages', - 'startapp', 'startproject', + 'startapp', 'startproject', 'compilemessages', ] try: diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 128ef2c203..b06d4e8a46 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -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 |
