mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Changed the ImportError message from [6832] to improve wording
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fde7e1c861
commit
ac3885c433
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ class LazySettings(object):
|
|||
if not settings_module: # If it's set but is an empty string.
|
||||
raise KeyError
|
||||
except KeyError:
|
||||
raise ImportError, "Environment variable %s is undefined so settings cannot be imported." % ENVIRONMENT_VARIABLE # NOTE: This is arguably an EnvironmentError, but that causes problems with Python's interactive help
|
||||
# NOTE: This is arguably an EnvironmentError, but that causes
|
||||
# problems with Python's interactive help.
|
||||
raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
|
||||
|
||||
self._target = Settings(settings_module)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue