aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Buck <brian.buck@sendoutcards.com>2016-08-24 08:16:24 -0600
committerBrian Buck <brian.buck@sendoutcards.com>2016-08-24 08:16:24 -0600
commit671aa2c4fe5c77bd5ebc0b5091f82065a6bee0ed (patch)
tree7f21d8b85b30433c0cf91ccdfc4a28863dcd694a
parent2497664d38ee1a5651b1fe4762d0cafb5e0467de (diff)
downloaddjango-wkhtmltopdf-671aa2c4fe5c77bd5ebc0b5091f82065a6bee0ed.tar.gz
django-wkhtmltopdf-671aa2c4fe5c77bd5ebc0b5091f82065a6bee0ed.tar.bz2
django-wkhtmltopdf-671aa2c4fe5c77bd5ebc0b5091f82065a6bee0ed.zip
Use the built-in Django tags for getting static and other media.
-rw-r--r--wkhtmltopdf/tests/templates/footer.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/wkhtmltopdf/tests/templates/footer.html b/wkhtmltopdf/tests/templates/footer.html
index cf98267..9deaf30 100644
--- a/wkhtmltopdf/tests/templates/footer.html
+++ b/wkhtmltopdf/tests/templates/footer.html
@@ -1,3 +1,4 @@
-<script src="{{ STATIC_URL }}sample_js_not_existing.js"></script>
+{% load static %}
+<script src="{% static 'sample_js_not_existing.js' %}"></script>
-<img src="{{ MEDIA_URL }}sample_image_not_existing.png" />
+<img src="{% get_media_prefix %}sample_image_not_existing.png" />