Numeric for loop in Django templates -


how write numeric for loop in django template? mean like

for = 1 n 

i've used simple technique works nicely small cases no special tags , no additional context. comes in handy

{% in "xxxxxxxxxxxxxxxxxxxx" %}     {{ forloop.counter0 }} {% endfor %} 

adjust length of "xxxxxxxxxxxxxxxxxxxx" according needs. "xxx" 3 iterations, etc.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -