Django templates offer the builtin tag cycle for alternating between several values at different points in a template (or for loop in a template) but this tag d
cycle
The easiest workaround (until the resetcycle patch gets fixed up and applied) is to use the built-in "divisibleby" filter with forloop.counter:
{% for entry in blog.entries %} {{ entry.text }} {% endfor %}
A little more verbose, but not hard to understand and it works great.