From efb1aac971c130a1987d9b9593b73a820278307d Mon Sep 17 00:00:00 2001 From: Alex Nathanail Date: Thu, 28 May 2020 18:13:49 +0100 Subject: [PATCH] Add note about template debug setting to README --- README.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.rst b/README.rst index 0b68a8e..29432ee 100644 --- a/README.rst +++ b/README.rst @@ -51,6 +51,20 @@ the plugin to identify untested templates. If you get a :code:`django.core.exceptions.ImproperlyConfigured` error, you need to set the :code:`DJANGO_SETTINGS_MODULE` environment variable. +If you get :code:`django_coverage_plugin.plugin.DjangoTemplatePluginException: Template debugging must be enabled in settings`, change your TEMPLATES setting: + +.. code-block:: python + + DEBUG = True + + TEMPLATES = [ + { + ... + 'OPTIONS': { + 'debug': DEBUG, + }, + }, + ] Configuration ~~~~~~~~~~~~~