aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/test_settings.py
diff options
context:
space:
mode:
authormattack108 <matt.lenc@gmail.com>2013-01-16 17:20:29 +0000
committermattack108 <matt.lenc@gmail.com>2013-01-16 17:20:29 +0000
commit62750c23a264ef04ac04e04bda820873ac9e421b (patch)
tree68da55010eaf495cd78537518151a1c971fac59a /wkhtmltopdf/test_settings.py
parentd4a938c08539264add40126ff5c8ab673a8f78c1 (diff)
parenta03c1e14b0da1999590442719c42293a88ab9e3b (diff)
downloaddjango-wkhtmltopdf-62750c23a264ef04ac04e04bda820873ac9e421b.tar.gz
django-wkhtmltopdf-62750c23a264ef04ac04e04bda820873ac9e421b.tar.bz2
django-wkhtmltopdf-62750c23a264ef04ac04e04bda820873ac9e421b.zip
Merge branch 'master' of github.com:incuna/django-wkhtmltopdf into travis-setup
Diffstat (limited to 'wkhtmltopdf/test_settings.py')
-rw-r--r--wkhtmltopdf/test_settings.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/wkhtmltopdf/test_settings.py b/wkhtmltopdf/test_settings.py
index 37d086f..9f6e461 100644
--- a/wkhtmltopdf/test_settings.py
+++ b/wkhtmltopdf/test_settings.py
@@ -1,5 +1,9 @@
+import os
+
DEBUG = True
+DIRNAME = os.path.abspath(os.path.dirname(__file__))
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@@ -7,10 +11,18 @@ DATABASES = {
}
}
-MEDIA_URL = ''
-STATIC_URL = ''
+MEDIA_ROOT = os.path.join(DIRNAME, 'media')
+MEDIA_URL = '/media/'
+STATIC_ROOT = os.path.join(DIRNAME, 'static')
+STATIC_URL = '/static/'
INSTALLED_APPS = (
'wkhtmltopdf.tests',
'wkhtmltopdf',
)
+
+TEMPLATE_DIRS = [
+ os.path.join(DIRNAME, 'testproject', 'tests', 'templates'),
+]
+
+WKHTMLTOPDF_DEBUG = DEBUG