From b667112d742ee78663c8cec9587a80e1105b8482 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Fri, 10 Dec 2021 13:45:34 +0100 Subject: [PATCH] updated test project to work with new django releases --- tests/settings.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/settings.py b/tests/settings.py index d953402..d7819fd 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -80,10 +80,22 @@ SECRET_KEY = '4f79$e&*4cfhk&k%uo*z0cjx&nvvayk-6wxkgf-apni5=q@!mz' # List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -) +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + MIDDLEWARE = ( 'django_statsd.middleware.StatsdMiddleware',