Use context.template.engine.debug
instead of settings.DEBUG
#6
Labels
enhancement
New feature or request
context.template.engine.debug
instead of settings.DEBUG
#6
Exceptions are raised if
settings.DEBUG
is True. This is OK, but to be more inline with Django's recommendations, we should check the value ofdebug
in the template engine's settings instead.Ref: https://docs.djangoproject.com/en/3.2/topics/templates/#django.template.backends.django.DjangoTemplates
The text was updated successfully, but these errors were encountered: