Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django template for loop

{% for o in some_list %}
    <tr class="{% cycle rowvalue1 rowvalue2 %}">
        ...
    </tr>
{% endfor %}
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #template #loop
ADD COMMENT
Topic
Name
9+9 =