aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Buck <brian.buck@sendoutcards.com>2016-08-24 07:31:42 -0600
committerBrian Buck <brian.buck@sendoutcards.com>2016-08-24 07:31:42 -0600
commit2497664d38ee1a5651b1fe4762d0cafb5e0467de (patch)
tree3708c5d2282bc22b71675a37748ed6eddcb03b53
parentc39642f54b3ab4ab22fa876ece5d277719322f56 (diff)
downloaddjango-wkhtmltopdf-2497664d38ee1a5651b1fe4762d0cafb5e0467de.tar.gz
django-wkhtmltopdf-2497664d38ee1a5651b1fe4762d0cafb5e0467de.tar.bz2
django-wkhtmltopdf-2497664d38ee1a5651b1fe4762d0cafb5e0467de.zip
Configure settings in `tests/run.py` for Django 1.10+
-rw-r--r--wkhtmltopdf/tests/run.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/wkhtmltopdf/tests/run.py b/wkhtmltopdf/tests/run.py
index e0021ab..4b3f65a 100644
--- a/wkhtmltopdf/tests/run.py
+++ b/wkhtmltopdf/tests/run.py
@@ -18,6 +18,7 @@ settings.configure(
}
},
INSTALLED_APPS=(
+ 'django.contrib.contenttypes',
'wkhtmltopdf.tests',
'wkhtmltopdf',
),
@@ -29,6 +30,14 @@ settings.configure(
MEDIA_URL='/media/',
STATIC_ROOT=os.path.join(DIRNAME, 'static'),
STATIC_URL='/static/',
+ TEMPLATES = [ # For Django >= 1.10. Ignored is lower versions
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'APP_DIRS': True,
+ 'DIRS': [],
+ 'OPTIONS': {},
+ },
+ ],
WKHTMLTOPDF_DEBUG=False,
)