From 7d4049279fe5af618b5f739b6a4033b5414be2c3 Mon Sep 17 00:00:00 2001 From: George Hickman Date: Sun, 30 Oct 2011 22:13:57 +0000 Subject: Fix use of STATIC vs MEDIA url --- wkhtmltopdf/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3