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.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/wkhtmltopdf/test_settings.py b/wkhtmltopdf/test_settings.py
index 37d086f..8b2ec62 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,22 @@ DATABASES = {
}
}
-MEDIA_URL = ''
-STATIC_URL = ''
+# MEDIA_URL = '/media/'
+# MEDIA_ROOT = '/tmp/media'
+# STATIC_URL = '/static/'
+# STATIC_ROOT = '/tmp/static'
+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