3

Possible Duplicate:
Numeric for loop in Django templates

In Python, if I want to run a loop nine times, I can do:

for i in range(1,10):

Is there an equivalent for the {% for %} tag in Django’s template language?

1

1 Answer 1

4

See this question.

Basically there is no support for it directly and you will need to write your own template tag for it or add it to the context your self. Either way isn't too big of a deal.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.