diff options
author | George Hickman <george@ghickman.co.uk> | 2011-10-30 22:13:57 +0000 |
---|---|---|
committer | George Hickman <george@ghickman.co.uk> | 2011-10-30 22:13:57 +0000 |
commit | 7d4049279fe5af618b5f739b6a4033b5414be2c3 (patch) | |
tree | 1254f3e913eaaa4b97722a7638be4838b1414f30 | |
parent | 2c6a5f64f060a4ebcb6166068b04202f9f007ec8 (diff) | |
download | django-wkhtmltopdf-7d4049279fe5af618b5f739b6a4033b5414be2c3.tar.gz django-wkhtmltopdf-7d4049279fe5af618b5f739b6a4033b5414be2c3.tar.bz2 django-wkhtmltopdf-7d4049279fe5af618b5f739b6a4033b5414be2c3.zip |
Fix use of STATIC vs MEDIA url
-rw-r--r-- | wkhtmltopdf/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py index e2fee19..0c1ec4c 100644 --- a/wkhtmltopdf/views.py +++ b/wkhtmltopdf/views.py @@ -54,7 +54,7 @@ class PdfTemplateView(TemplateView): match_full_url = compile(r'^https?://') if not match_full_url.match(settings.STATIC_URL): context['STATIC_URL'] = 'http://' + Site.objects.get_current().domain + settings.STATIC_URL - if not match_full_url.match(settings.STATIC_URL): + if not match_full_url.match(settings.MEDIA_URL): context['MEDIA_URL'] = 'http://' + Site.objects.get_current().domain + settings.MEDIA_URL return context |