From 009f951483d839517ac9769753f34296e141be8b Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 22 Mar 2012 12:01:47 -0400 Subject: [PATCH] Don't execute the site-specific settings file if it doesn't exist --- settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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