summaryrefslogtreecommitdiffstats
path: root/testsettings.py
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-03-02 17:14:46 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-03-02 17:14:46 (GMT)
commit3f0f0be180c59f0060e1e000119ae8bf0943c838 (patch)
tree814e26475b7f7f0ddd19e05b3786c3355fe5d88c /testsettings.py
parentec27553789f13ad55d19bbca2194cc018af001a0 (diff)
downloaddjango-mellon-3f0f0be180c59f0060e1e000119ae8bf0943c838.zip
django-mellon-3f0f0be180c59f0060e1e000119ae8bf0943c838.tar.gz
django-mellon-3f0f0be180c59f0060e1e000119ae8bf0943c838.tar.bz2
silence Django 1.10 deprecration warnings
Diffstat (limited to 'testsettings.py')
-rw-r--r--testsettings.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsettings.py b/testsettings.py
index bef6499..d3cf99e 100644
--- a/testsettings.py
+++ b/testsettings.py
@@ -1,4 +1,5 @@
import os
+import django
from django.conf import global_settings
DATABASES = {
@@ -23,3 +24,10 @@ AUTHENTICATION_BACKENDS = (
'mellon.backends.SAMLBackend',
)
ROOT_URLCONF = 'mellon.urls'
+if django.VERSION >= (1,8):
+ TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'APP_DIRS': True,
+ },
+ ]