diff sat_website/local_settings.py @ 61:c902ce09d4ed

put the external module import between try except
author souliane <souliane@mailoo.org>
date Fri, 15 May 2015 17:26:32 +0200
parents 0d20fb28c32e
children 26353615cc2e
line wrap: on
line diff
--- a/sat_website/local_settings.py	Fri May 15 17:15:40 2015 +0200
+++ b/sat_website/local_settings.py	Fri May 15 17:26:32 2015 +0200
@@ -150,4 +150,7 @@
 # Import another settings file that can override these settings (for example to daily update the stats when you don't want a script to directly modify this file)
 from sys import path
 path.append('/home/souliane')
-from sat_website_external_settings import *
+try:
+    from sat_website_external_settings import *
+except ImportError:
+    pass