diff --git a/django_coverage_plugin/plugin.py b/django_coverage_plugin/plugin.py
index <HASH>..<HASH> 100644
--- a/django_coverage_plugin/plugin.py
+++ b/django_coverage_plugin/plugin.py
@@ -78,6 +78,8 @@ def check_debug():
         return False
     if not hasattr(django.template.backends.django, "DjangoTemplates"):
         raise DjangoTemplatePluginException("Can't use non-Django templates.")
+    if not django.template.engines._engines:
+        return False
 
     for engine in django.template.engines.all():
         if not isinstance(engine, django.template.backends.django.DjangoTemplates):
Fix tags missing when imported during collection

(cherry picked from commit <I>d4dd<I>b7e6b<I>c<I>f<I>b3c<I>)