diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-07 13:42:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-08 11:39:56 +0100 |
commit | 846b0e2cc8d4c7616c8aa44b56f623f87f8f027a (patch) | |
tree | 7a9d79d049c6214b519f57a6f429f7081fe50fc5 /example_project | |
parent | 92a5278be4b7868b636d0c6b1a32993128060da5 (diff) | |
download | Ishtar-846b0e2cc8d4c7616c8aa44b56f623f87f8f027a.tar.bz2 Ishtar-846b0e2cc8d4c7616c8aa44b56f623f87f8f027a.zip |
Make background task not mandatory (refs #3951)
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index d488683d3..708c71235 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -160,7 +160,6 @@ INSTALLED_APPS = [ 'archaeological_finds', 'ajax_select', 'compressor', - 'background_task', # 'debug_toolbar', ] @@ -221,6 +220,8 @@ LOGGING = { }, } +USE_BACKGROUND_TASK = False + # Ishtar custom SRID = 27572 SURFACE_SRID = 2154 @@ -283,6 +284,9 @@ if DEBUG: elif 'console' not in LOGGING['loggers'][logger]['handlers']: LOGGING['loggers'][logger]['handlers'] += ['console'] +if USE_BACKGROUND_TASK: + INSTALLED_APPS.append('background_task') + if DJANGO_EXTENSIONS: INSTALLED_APPS.append('django_extensions') |