My take on this issue, i think is the nicest. I keep a my_filters.py on the templatetags directory.
@register.filter(name='times')
def times(number):
return range(number)
And you would use like this:
{% load my_filters %}
{% for i in 15|times %}
Item
{% endfor %}