Changed [105] to match our code standards
git-svn-id: http://code.djangoproject.com/svn/django/trunk@106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f69ce6c2b3
commit
9049477738
|
@ -22,12 +22,12 @@ for setting in dir(global_settings):
|
||||||
try:
|
try:
|
||||||
me.SETTINGS_MODULE = os.environ["DJANGO_SETTINGS_MODULE"]
|
me.SETTINGS_MODULE = os.environ["DJANGO_SETTINGS_MODULE"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise EnvironmentError("Environemnt variable DJANGO_SETTINGS_MODULE is undefined."
|
raise EnvironmentError, "Environemnt variable DJANGO_SETTINGS_MODULE is undefined."
|
||||||
|
|
||||||
try:
|
try:
|
||||||
mod = __import__(me.SETTINGS_MODULE, '', '', [''])
|
mod = __import__(me.SETTINGS_MODULE, '', '', [''])
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
raise EnvironmentError("Could not import DJANGO_SETTINGS_MODULE '%s' (is it on sys.path?): %s" % (me.SETTINGS_MODULE, e)
|
raise EnvironmentError, "Could not import DJANGO_SETTINGS_MODULE '%s' (is it on sys.path?): %s" % (me.SETTINGS_MODULE, e)
|
||||||
|
|
||||||
for setting in dir(mod):
|
for setting in dir(mod):
|
||||||
if setting == setting.upper():
|
if setting == setting.upper():
|
||||||
|
|
Loading…
Reference in New Issue