[Python-modules-commits] [django-sekizai] 01/06: django-1.10-fix_runtests_lack_of_TEMPLATES

Thomas Goirand zigo at moszumanska.debian.org
Tue Aug 2 08:51:54 UTC 2016


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

zigo pushed a commit to branch master
in repository django-sekizai.

commit 880b74889bbba237fe1bb17d992e1cbbb462be6b
Author: Thomas Goirand <zigo at debian.org>
Date:   Tue Aug 2 08:39:49 2016 +0000

    django-1.10-fix_runtests_lack_of_TEMPLATES
---
 runtests.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/runtests.py b/runtests.py
index d7f94b3..11ddb22 100644
--- a/runtests.py
+++ b/runtests.py
@@ -30,6 +30,19 @@ TEMPLATE_CONTEXT_PROCESSORS = [
 
 ROOT_URLCONF = 'runtests'
 
+TEMPLATES = [
+    {
+        'BACKEND': 'django.template.backends.django.DjangoTemplates',
+        'DIRS': [ os.path.join(os.path.dirname(__file__), 'sekizai', 'test_templates'), ],
+        'OPTIONS': {
+            'context_processors': [
+                'sekizai.context_processors.sekizai',
+            ],
+            'debug': True,
+        },
+    },
+]
+
 
 def runtests():
     from django import VERSION
@@ -47,6 +60,7 @@ def runtests():
         TEMPLATE_CONTEXT_PROCESSORS=TEMPLATE_CONTEXT_PROCESSORS,
         TEMPLATE_DEBUG=TEMPLATE_DEBUG,
         MIDDLEWARE_CLASSES=[],
+        TEMPLATES=TEMPLATES,
     )
     if VERSION[1] >= 7:
         from django import setup

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



More information about the Python-modules-commits mailing list