[Python-modules-commits] [python-django-registration] 09/11: Update django runtest settings for django 1.10 (works >= 1.8).
Stephan Suerken
absurd at moszumanska.debian.org
Fri Jul 29 19:18:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
absurd pushed a commit to branch master
in repository python-django-registration.
commit bc4a9ede0f8e5fdecb7a5b38f36bb8f474cc5cc9
Author: Stephan Sürken <absurd at debian.org>
Date: Fri Jul 29 17:39:48 2016 +0000
Update django runtest settings for django 1.10 (works >= 1.8).
Bug-Debian: http://bugs.debian.org/828672
Patch-Name: update_django_runtest_settings_for_django110.patch
---
registration/runtests.py | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/registration/runtests.py b/registration/runtests.py
index 1f5755e..93103be 100644
--- a/registration/runtests.py
+++ b/registration/runtests.py
@@ -42,9 +42,25 @@ SETTINGS_DICT = {
'django.contrib.auth.middleware.AuthenticationMiddleware',
),
'SITE_ID': 1,
- 'TEMPLATE_DIRS': (
- os.path.join(APP_DIR, 'tests/templates'),
- ),
+ 'TEMPLATES': [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [ os.path.join(APP_DIR, 'tests/templates') ],
+ 'OPTIONS': {
+ 'context_processors': [
+ # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
+ # list if you haven't customized them:
+ '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/python-django-registration.git
More information about the Python-modules-commits
mailing list