Very confused. I have a variable that has 32 items in it, and I'm trying to do a for loop but it's saying "Caught IndexError while rendering: string index out of range"
Any ideas? The variable definitely isn't empty.
{% if photos %}
<ul class="photo-grid">
{% for photo in photos %}
<li>
<img src="{{ photo.images.low_resolution.url }}" />
</li>
{% endfor %}
</ul>
{% else %}
No photos found.
{% endif %}
photo.images.low_resolution.url?photodict/object doesn't have the keys you are trying to access. My guess is that eitherphoto.imagesorphoto.images.low_resolutionorphoto.images.low_resolution.urlis missing.