On 11/8/05, Chris Curvey <[EMAIL PROTECTED]> wrote: > I can figure out how to cycle through the questions and answers, but I > can't figure out how to keep track of where I am in the loop to > generate "question1", "question2", etc. I tried putting in {% i = 0 > %}, but that gave me an "invalid block tag" error.
Check out {{ forloop.counter }} or {{ forloop.counter0 }} (zero-based). Those variables are automatically available to you within any {% for %} loop. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org