misc: add livereload setup (#68827)
This commit is contained in:
parent
cdef4f6a1d
commit
1d6c14ba80
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue