summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-02-04 12:15:22 +0100
committerClaude Paroz <claude@2xlibre.net>2013-02-04 12:15:22 +0100
commit2edef932ff4ffc766c7abe18bde2cc77babd8fef (patch)
tree0bd4c8560eb4ae65f196eb7435ad82e6497a69a4 /django/core
parent40ca99097f34b2180b2afe6d0056cade4c732618 (diff)
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.
Diffstat (limited to 'django/core')
-rw-r--r--django/core/management/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index c68ffea43c..7638937c94 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -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: