diff options
author | Brian Buck <brian.buck@sendoutcards.com> | 2016-08-24 08:16:24 -0600 |
---|---|---|
committer | Brian Buck <brian.buck@sendoutcards.com> | 2016-08-24 08:16:24 -0600 |
commit | 671aa2c4fe5c77bd5ebc0b5091f82065a6bee0ed (patch) | |
tree | 7f21d8b85b30433c0cf91ccdfc4a28863dcd694a /wkhtmltopdf/tests | |
parent | 2497664d38ee1a5651b1fe4762d0cafb5e0467de (diff) | |
download | django-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.
Diffstat (limited to 'wkhtmltopdf/tests')
-rw-r--r-- | wkhtmltopdf/tests/templates/footer.html | 5 |
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" /> |