[Python-modules-commits] [djangorestframework-gis] 05/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 d583df97edba5e5286bfd17f5b712818cd4c0bac
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