summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-27 17:49:32 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-08-27 17:49:32 +0200
commit3642f48c8a62d7a39adfe9472ab7de209b291334 (patch)
tree35790639b6f39c11addc6ce2daaa23cc280586d5 /example_project
parent87c17476bc869cb1ae633034e372a7576d406939 (diff)
downloadIshtar-3642f48c8a62d7a39adfe9472ab7de209b291334.tar.bz2
Ishtar-3642f48c8a62d7a39adfe9472ab7de209b291334.zip
settings: add a MAIN_APP parameters
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 241e330f9..db9a3ee64 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -162,6 +162,8 @@ INSTALLED_APPS = [
# 'debug_toolbar',
]
+MAIN_APP = ""
+
LOGFILE = ''
default_handler = {
@@ -263,6 +265,9 @@ try:
except ImportError, e:
print('Unable to load local_settings.py:', e)
+if MAIN_APP:
+ INSTALLED_APPS.insert(INSTALLED_APPS.index("ishtar_common"), MAIN_APP)
+
TESTING = sys.argv[1:2] == ['test']
PROJECT_SLUG = locals().get('PROJECT_SLUG', 'default')