[Fixed]-Django – Use forloop.counter0

1👍

You shouldn’t need to look up the index at all, just have another forloop inside that loops over the row

{% for i in row %}
   <td>{{ i }}</td>
{% endfor %}

If you need anything more granular, you might want to look into making an actual model to represent the data, and then iterate over a list of this model.

👤Sayse

Leave a comment