aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/test_settings.py
diff options
context:
space:
mode:
authorJames Turnbull <james@jamesturnbull.org>2013-01-16 07:41:28 -0800
committerJames Turnbull <james@jamesturnbull.org>2013-01-16 07:41:28 -0800
commita03c1e14b0da1999590442719c42293a88ab9e3b (patch)
tree45a1966ab8da505e62490c5a8651075c4ed157a1 /wkhtmltopdf/test_settings.py
parent887d3c6600750dd573e768c6fdf370a6a607d39b (diff)
parentcda678a3ea9b01a684c6e2d3ed636834f41c96f8 (diff)
downloaddjango-wkhtmltopdf-a03c1e14b0da1999590442719c42293a88ab9e3b.tar.gz
django-wkhtmltopdf-a03c1e14b0da1999590442719c42293a88ab9e3b.tar.bz2
django-wkhtmltopdf-a03c1e14b0da1999590442719c42293a88ab9e3b.zip
Merge pull request #28 from incuna/downloading-option
Make PDF downloading an option
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