From ee4daac3b1d22e3ff3890efee015253f3e4b9e7a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 7 Mar 2018 13:42:42 +0100 Subject: Make background task not mandatory (refs #3951) --- example_project/settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'example_project/settings.py') 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') -- cgit v1.2.3