mixxorz / slippers

A UI component framework for Django. Built on top of Django Template Language.

Home Page:https://mitchel.me/slippers/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mixxorz opened this issue · 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