[Django]-Use forloop.counter0 to index an array in Django

6👍

The templating engine is probably looking for a property called another_list.forloop, which of course doesn’t exist.

If you want to loop through two lists simultaneously, the best solution may be to zip them in your view beforehand.

Leave a comment