Is there any way to produce a report containing the code coverage in my django test suite for my site’s templates? I already have coverage for python, but coverage for templates to identify dead or untested template code would be awesome.
To clarify: I want to find lines in my templates that are never executed or emitted during my test suite.
Have a look at Django Template Coverage tool: https://github.com/traff/dtcov
It does exactly what you need.
EDIT: Django Template Coverage was merged to coverage.py as a plugin:
http://nedbatchelder.com/blog/201501/coveragepy_for_django_templates.html
It is recommended to use it instead of original project.