Load settings.local only if present.
[pithos] / pithos / settings.py
index 420fb2b..d26da09 100644 (file)
@@ -32,7 +32,8 @@
 # or implied, of GRNET S.A.
 
 from glob import glob
-from os.path import abspath, dirname, join
+from os import umask
+from os.path import abspath, dirname, exists, join
 
 
 PROJECT_PATH = dirname(abspath(__file__))
@@ -42,3 +43,8 @@ conffiles = glob(join(PROJECT_PATH, 'settings.d', '*.conf'))
 
 for conf in sorted(conffiles):
     execfile(conf)
+
+conf = join(PROJECT_PATH, 'settings.local')
+
+if exists(conf):
+    execfile(conf)