{% load staticfiles otree_tags %} {% for image in images %} {% with "image_upload/"|add:image as myimg %} {% endwith %} {% endfor %}