DEV Community

Discussion on: Enumerating Through Lists in a Django Template

Collapse
 
greenteabiscuit profile image
Reishi Mitani

Sorry for the late reply.
For two loops, it seems like there is the forloop.parentloop .
e.g. forloop.parentloop.counter
However for three or more loops I do not know yet whether there is a way to distinguish each of them.

This stackoverflow might be of a help: stackoverflow.com/questions/237651...