How does one alternate row colors in a table in django that’s generated using a for loop from a list? In asp.net it is possible to do math on the view to easily calculate that, but from what I understand that kind of math is not possible in django, so I’m looking for another way.
Share
I think you are looking for cycle.