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.
1 parent bee7d68 commit dc47974Copy full SHA for dc47974
tests/plugin_test.py
@@ -67,10 +67,12 @@ def test_settings():
67
if hasattr(django, "setup"):
68
django.setup()
69
70
+from django.template import Context, Template # noqa
71
+from django.template.loader import get_template # noqa
72
+from django.test import TestCase # noqa
73
-from django.template import Context, Template # noqa
-from django.template.loader import get_template # noqa
-from django.test import TestCase # noqa
74
+if django.VERSION >= (1, 8):
75
+ from django.template.backends.django import DjangoTemplates # noqa
76
77
78
class DjangoPluginTestCase(StdStreamCapturingMixin, TempDirMixin, TestCase):
0 commit comments