aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/test_settings.py
diff options
context:
space:
mode:
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