Re: Allow for strict mode in templates

2022-08-21 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
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-un

Allow for strict mode in templates

2022-08-21 Thread Contributions to Django itself
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 h