I currently have a template that loops through a list of URLS, like so.
{% for i in images %} <div class="col"> <p><a href="{{i}}"><img height="200" src="{{i}}"/></a></p> <p><a href="{{i}}">{{i|cut:"/uploads/"|truncatechars:20}}</a></p> </div> {% endfor %} The issue is at the time of rendering some of the images are not done processing. So how would I check if the image is available via the url?
imageslist in the first place.imagesvariable. Templates are not for extended logic such as this, and they are processed right after views anyway, so there will only be milliseconds of difference.