diff options
author | mattack108 <matt.lenc@gmail.com> | 2013-01-16 17:20:29 +0000 |
---|---|---|
committer | mattack108 <matt.lenc@gmail.com> | 2013-01-16 17:20:29 +0000 |
commit | 62750c23a264ef04ac04e04bda820873ac9e421b (patch) | |
tree | 68da55010eaf495cd78537518151a1c971fac59a /wkhtmltopdf/test_settings.py | |
parent | d4a938c08539264add40126ff5c8ab673a8f78c1 (diff) | |
parent | a03c1e14b0da1999590442719c42293a88ab9e3b (diff) | |
download | django-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.py | 16 |
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 |