Django logs warnings for missing variables. I believe this logging was added since that ticket was closed.
I recently wrote a blog post with some techniques you can use to hook into this logging and turn those errors into exceptions: https://adamj.eu/tech/2022/03/30/how-to-make-django-error-for-undefined-template-variables/ . I hope that helps. On Sat, Aug 20, 2022 at 2:34 PM 'Michael Hübner' via Django developers (Contributions to Django itself) <django-developers@googlegroups.com> wrote: > I was struggeling with a get query that just wouldn't throw any > exceptions. Then I stubled about this: > > https://code.djangoproject.com/ticket/11909 > > I'm so sorry about the rude request in there, but it would be really > helpful to allow for a "strict mode" in templates where errors get thrown > to help debug issues. > > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/0b926630-6832-48a0-8377-c74d93c55a83n%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/0b926630-6832-48a0-8377-c74d93c55a83n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM12%3DHzrpojjZNerPu7bwbTcCPVUCQjXM4tViP6rb5A_0w%40mail.gmail.com.