diff --git a/settings.py b/settings.py index 0e9285f296..f819019122 100644 --- a/settings.py +++ b/settings.py @@ -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