Don't execute the site-specific settings file if it doesn't exist

This commit is contained in:
Calen Pennington
2012-03-22 12:01:47 -04:00
parent 8593d45e90
commit 009f951483

View File

@@ -174,7 +174,9 @@ CACHES = {
}
# Make sure we execute correctly regardless of where we're called from
execfile(os.path.join(BASE_DIR, "settings.py"))
override_settings = os.path.join(BASE_DIR, "settings.py")
if os.path.isfile(override_settings):
execfile(override_settings)
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to