Created
June 28, 2012 19:58
-
-
Save daaray/3013502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% with foo="http:://domain.com"|add:STATIC_URL|add:"path/to/image.jpg" %} | |
{{ foo }} | |
{% endwith %} |
Ah! Thanks! Was thinking I'd have to write a context processor to grab the Site URL.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are using 1.4 the
static
tag might be better here: https://docs.djangoproject.com/en/1.4/ref/contrib/staticfiles/#static