diff --git a/consultation_analyser/settings/base.py b/consultation_analyser/settings/base.py index 25c0a12a..c7cf9315 100644 --- a/consultation_analyser/settings/base.py +++ b/consultation_analyser/settings/base.py @@ -55,15 +55,13 @@ TEMPLATES = [ { - "BACKEND": "django_jinja.jinja2.Jinja2", - "DIRS": [ - BASE_DIR / "consultation_analyser" / "consultations" / "templates", - ], + "BACKEND": "django.template.backends.jinja2.Jinja2", + "APP_DIRS": True, + "OPTIONS": {"environment": "consultation_analyser.jinja2.environment"}, + }, + { + "BACKEND": "django.template.backends.django.DjangoTemplates", "APP_DIRS": True, - "OPTIONS": { - "match_extension": ".html", - "extensions": DEFAULT_EXTENSIONS + ["compressor.contrib.jinja2ext.CompressorExtension"], - }, }, ]