Hello,
In a html template file, how can I concatenate strings:
I find the solution below:
{% with "/media/"|add:"{{ i.no }}"|add:".jpg" as template_str %}
But
When I use: <img src=template_str />, template_str is /media/{{ i.no }}.jpg
How can I evaluate
/media/87788778888767767.jpg
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.