Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django template for range

{% with ''|center:n as range %}
{% for _ in range %}
    {{ forloop.counter }}
{% endfor %}
{% endwith %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #template #range
ADD COMMENT
Topic
Name
1+2 =