We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9e9d00 + 9283084 commit cc3d52aCopy full SHA for cc3d52a
django_coverage_plugin/plugin.py
@@ -53,8 +53,13 @@ def check_debug():
53
# Django 1.8+ handles both old and new-style settings and converts them
54
# into template engines, so we don't need to depend on settings values
55
# directly and can look at the resulting configured objects
56
+
57
+ # django.template.backends.django gets loaded lazily, so return false
58
+ # until they've been loaded
59
+ if not hasattr(django.template, "backends"):
60
+ return False
61
if not hasattr(django.template.backends, "django"):
- raise DjangoTemplatePluginException("Can't use non-Django templates.")
62
63
64
if not hasattr(django.template.backends.django, "DjangoTemplates"):
65
raise DjangoTemplatePluginException("Can't use non-Django templates.")
0 commit comments