How to loop X times in Django?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-06-03T20:47:03Z Indexed on 2010/06/03 20:54 UTC
Read the original article Hit count: 125

Filed under:
|

I have user reviews on my site. Each review has a rating of 1-5 stars. I want to print that many stars. How do I do it? I only see {% for X in Y %} which lets you iterate over a list, but not a certain number of times.

© Stack Overflow or respective owner

Related posts about django

Related posts about django-templates