We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5312c5 commit 98296b7Copy full SHA for 98296b7
1 file changed
deis/settings.py
@@ -4,6 +4,7 @@
4
5
from __future__ import unicode_literals
6
import os.path
7
+import sys
8
import tempfile
9
10
PROJECT_ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
@@ -305,6 +306,14 @@
305
306
# see https://docs.djangoproject.com/en/1.5/ref/settings/#std:setting-ALLOWED_HOSTS
307
ALLOWED_HOSTS = ['*']
308
309
+# import dynamic confd settings from /app, if they exist
310
+try:
311
+ if os.path.exists('/app/confd_settings.py'):
312
+ sys.path.append('/app')
313
+ from confd_settings import *
314
+except ImportError:
315
+ pass
316
+
317
# Create a file named "local_settings.py" to contain sensitive settings data
318
# such as database configuration, admin email, or passwords and keys. It
319
# should also be used for any settings which differ between development
0 commit comments