I'm trying to load an image whose url is composed of a vairable numerical value. Is there a template only solution to this or do I really have to create a filter in extras.py? I would rather just write this one liner. Something along the following lines:
{% with urltemp="media/"|add:info.personid|stringformat:"s"|add:".jpg" %}
<img src="{% static urltemp %}" onerror="this.style.display='none'"/>
{% endwith %}