| published by | Adam Johnson |
|---|---|
| in blog | Adam Johnson |
| original entry | Django: Fail in templates with {% url '' %} |
Previously, I covered using 1/0 to crash Python within minimal typing, useful to quickly answer questions like “does the code even get here?”.
Recently, I wanted to do the same in Django templates, to trace if a given template was even being rendered, and under which code paths.
It …