Possible duplicate:Figures for a 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 a tag equivalent {% for %}in the Djangos template language?
{% for %}
See this question.
Basically, there is no support for it directly, and you will need to write your own template tag or add it to the context yourself. In any case, this is not a big deal.
Source: https://habr.com/ru/post/1783692/More articles:In mercurial, how to configure and use platform dependent hgrc? - unixSearch product category from UPC code - web-servicesUpdating the GWT Cell Table at Run Time - gwtПочему наименьшее значение, которое может быть сохранено, это байт (8 бит), а не бит (1 бит)? - memoryMigrating a pointer through boost :: interprocess :: message_queue - boostCustom MVC Route: Change Location for the Controller - c #Indexing only affects WHERE clause? - sqlWhat does double colon ('::') mean in ActionScript 3 / Flex? - flexShowing the second form exactly in place of the first form - c #Objective-C: do you use the @private visibility / access modifier in your code? - iosAll Articles