[Python-modules-commits] [djangorestframework-gis] 05/08: Add TEMPLATES setting for Django 1.8+.

Michael Fladischer fladi at moszumanska.debian.org
Wed Nov 23 21:05:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository djangorestframework-gis.

commit a00e23a9013ec37e22dbf739909d31c94b52711e
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Mon Oct 17 13:44:45 2016 +0200

    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',
+            ],
+        },
+    },
+]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/djangorestframework-gis.git



More information about the Python-modules-commits mailing list