Browse Source

Allow to configure settings locally

Baptiste Jonglez 9 years ago
parent
commit
301624db75
2 changed files with 23 additions and 0 deletions
  1. 7 0
      celutz/settings.py
  2. 16 0
      celutz/settings_local.py

+ 7 - 0
celutz/settings.py

@@ -103,3 +103,10 @@ PANORAMA_MAX_DISTANCE = 50000
 BROKER_URL = 'django://'
 BROKER_URL = 'django://'
 CELERY_TASK_SERIALIZER = 'json'
 CELERY_TASK_SERIALIZER = 'json'
 CELERY_ACCEPT_CONTENT = ['json']
 CELERY_ACCEPT_CONTENT = ['json']
+
+
+# Parameter overloading
+try:
+    from celutz.settings_local import *
+except ImportError:
+    pass

+ 16 - 0
celutz/settings_local.py

@@ -0,0 +1,16 @@
+"""
+Local Django settings for celutz project.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/1.7/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/1.7/ref/settings/
+"""
+
+# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
+import os
+BASE_DIR = os.path.dirname(os.path.dirname(__file__))
+
+
+# Put your specific configuration here