slippers icon indicating copy to clipboard operation
slippers copied to clipboard

Use `context.template.engine.debug` instead of `settings.DEBUG`

Open mixxorz opened this issue 3 years ago • 0 comments

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 of debug in the template engine's settings instead.

Ref: https://docs.djangoproject.com/en/3.2/topics/templates/#django.template.backends.django.DjangoTemplates

mixxorz avatar Aug 28 '21 03:08 mixxorz