From be8d0bb89948006986917d3b3af9cdeed1c2c1e9 Mon Sep 17 00:00:00 2001 From: Agate Berriot Date: Tue, 11 Oct 2022 15:37:10 +0200 Subject: [PATCH] misc: livereload setup (#68827) --- combo/context_processors.py | 1 + combo/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/combo/context_processors.py b/combo/context_processors.py index 2b947800..c2577e52 100644 --- a/combo/context_processors.py +++ b/combo/context_processors.py @@ -23,6 +23,7 @@ from combo.utils.cache import cache_during_request def template_vars(request): context_extras = {} context_extras['debug'] = settings.DEBUG + context_extras['livereload_enabled'] = settings.LIVERELOAD_ENABLED context_extras['pwa_settings'] = cache_during_request(PwaSettings.singleton) context_extras.update(settings.TEMPLATE_VARS) return context_extras diff --git a/combo/settings.py b/combo/settings.py index b123728e..5ec5d610 100644 --- a/combo/settings.py +++ b/combo/settings.py @@ -40,6 +40,7 @@ SECRET_KEY = 'r^(w+o4*txe1=t+0w*w3*9%idij!yeq1#axpsi4%5*u#3u&)1t' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True +LIVERELOAD_ENABLED = False ALLOWED_HOSTS = [] -- 2.37.2