Projet

Général

Profil

0001-misc-livereload-setup-68827.patch

A. Berriot, 11 octobre 2022 15:37

Télécharger (1,22 ko)

Voir les différences:

Subject: [PATCH] misc: livereload setup (#68827)

 combo/context_processors.py | 1 +
 combo/settings.py           | 1 +
 2 files changed, 2 insertions(+)
combo/context_processors.py
23 23
def template_vars(request):
24 24
    context_extras = {}
25 25
    context_extras['debug'] = settings.DEBUG
26
    context_extras['livereload_enabled'] = settings.LIVERELOAD_ENABLED
26 27
    context_extras['pwa_settings'] = cache_during_request(PwaSettings.singleton)
27 28
    context_extras.update(settings.TEMPLATE_VARS)
28 29
    return context_extras
combo/settings.py
40 40

  
41 41
# SECURITY WARNING: don't run with debug turned on in production!
42 42
DEBUG = True
43
LIVERELOAD_ENABLED = False
43 44

  
44 45
ALLOWED_HOSTS = []
45 46

  
46
-