nedbat / django_coverage_plugin

A plugin for coverage.py to measure Django template execution
Apache License 2.0
196 stars 34 forks source link

Add a note that `TEMPLATE_DEBUG` must be enabled. #17

Closed charettes closed 8 years ago

charettes commented 8 years ago

I had to read the source to figure out it was required. Fixing the TODO would also be nice.

nedbat commented 8 years ago

Even better, I'd like to add an automated warning message if TEMPLATE_DEBUG is not set.

audreyfeldroy commented 8 years ago

Just fyi, as of Django 1.8, TEMPLATE_DEBUG is deprecated: https://docs.djangoproject.com/en/1.8/ref/settings/#template-debug

charettes commented 8 years ago

It has been replaced by the 'debug' option in the OPTIONS of a DjangoTemplates backend.

nedbat commented 8 years ago

This is handled in 99ba553

charettes commented 8 years ago

Thanks Ned!

jonashaag commented 8 years ago

Will you cut a a release with this fix soon? I spent almost an hour debugging this.

nedbat commented 8 years ago

Version 1.2 is on PyPI now, with this fix. Sorry for the delay :)

jonashaag commented 8 years ago

Thank you!