This doesn't make sense at all - if you want a variable in the static call
you need to do something like this:
{% with 'icons/'|add:newspaper|add:'.png' as image_static %}
{% static image_static %}{% endwith %}
The reason for not just adding it to the end is because you could have md5
hashes in
I think you can not render variable in a template tag, so:
{% static "/icons/{{newspaper}}.png" %}
maybe should be
{% static "/icons/" %}{{newspaper}}.png
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and sto
Hello, I'm new to django. I have faced with this problem and couldn't find
an answer to my problem. I zip 2 lists and I want to iterate them
simultaneously.
I get this error
>
> Reverse for '{{newspaper}}' not found. '{{newspaper}}' is not a valid view
> function or pattern name.
>
>
my html
3 matches
Mail list logo