misc: add livereload setup (#68827)

This commit is contained in:
Agate 2022-10-11 15:37:10 +02:00
parent cdef4f6a1d
commit 1d6c14ba80
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 = []