[Python-modules-commits] [djangorestframework-gis] 02/10: Add TEMPLATES setting for Django 1.8+.
    Michael Fladischer 
    fladi at moszumanska.debian.org
       
    Mon Oct 17 12:10:41 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 aa7c3258ebd9f608376b8ecaed121e70b0a68156
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 0299ffc..ed1ee17 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -55,3 +55,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