From 6d6e8f7f01995d060b320808f3082fa0c414beb1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 27 Aug 2018 17:49:32 +0200 Subject: settings: add a MAIN_APP parameters --- .gitignore | 1 + example_project/settings.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 4c38aae39..4b58376e8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.mo *~ .~* +drassm_app/* django-simple-history/* django-formwizard/* ishtar-docs 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') -- cgit v1.2.3