From a00e23a9013ec37e22dbf739909d31c94b52711e Mon Sep 17 00:00:00 2001
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Mon, 17 Oct 2016 13:44:45 +0200
Subject: Add TEMPLATES setting for Django 1.8+.

---
 tests/settings.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/tests/settings.py b/tests/settings.py
index 0fb4e30..a419f71 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -75,3 +75,22 @@ STATIC_URL = '/static/'
 ANONYMOUS_USER_ID=-1
 
 TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
+
+TEMPLATES = [
+    {
+        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+        'DIRS': [],
+        'APP_DIRS': True,
+        'OPTIONS': {
+            'context_processors': [
+                'django.contrib.auth.context_processors.auth',
+                'django.template.context_processors.debug',
+                'django.template.context_processors.i18n',
+                'django.template.context_processors.media',
+                'django.template.context_processors.static',
+                'django.template.context_processors.tz',
+                'django.contrib.messages.context_processors.messages',
+            ],
+        },
+    },
+]
