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?
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.
精彩评论