mirror of
https://github.com/django/django.git
synced 2025-01-27 10:39:40 +00:00
Revert "Fixed #19724 -- Output error when settings are improperly configured"
This reverts commit 40ca99097f34b2180b2afe6d0056cade4c732618. Outputting error is not always suitable, for example this shouldn't happen for the 'startproject' command.
This commit is contained in:
parent
40ca99097f
commit
2edef932ff
@ -107,13 +107,10 @@ def get_commands():
|
||||
from django.conf import settings
|
||||
try:
|
||||
apps = settings.INSTALLED_APPS
|
||||
except ImproperlyConfigured as e:
|
||||
except ImproperlyConfigured:
|
||||
# Still useful for commands that do not require functional settings,
|
||||
# like startproject or help
|
||||
apps = []
|
||||
sys.stderr.write(color_style().ERROR(
|
||||
"Project settings contain errors: %s\n"
|
||||
"As a result, only the core Django commands are available.\n" % e))
|
||||
|
||||
# Find and load the management module for each installed app.
|
||||
for app_name in apps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user