summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
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
commitee4daac3b1d22e3ff3890efee015253f3e4b9e7a (patch)
tree7a9d79d049c6214b519f57a6f429f7081fe50fc5 /example_project
parent9bce419add91a8ac4d4ac8ac5e78cab456204836 (diff)
downloadIshtar-ee4daac3b1d22e3ff3890efee015253f3e4b9e7a.tar.bz2
Ishtar-ee4daac3b1d22e3ff3890efee015253f3e4b9e7a.zip
Make background task not mandatory (refs #3951)
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py6
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')