Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use context.template.engine.debug instead of settings.DEBUG #6

Open
mixxorz opened this issue Aug 28, 2021 · 0 comments
Open

Use context.template.engine.debug instead of settings.DEBUG #6

mixxorz opened this issue Aug 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mixxorz
Copy link
Owner

mixxorz commented Aug 28, 2021

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 mixxorz added the enhancement New feature or request label Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant