Answer the question
In order to leave comments, you need to log in
How to display a python list by columns in a table in django template?
There is a table with three headings, under each heading it is required to put data from the python list for each division of time. The elements of the list are the names of the people in str. This list contains names for all three columns.
I know that you can divide the list by lines like this:
{% if forloop.counter|divisibleby:"2" %}<tr>{% endif %}
<td><td>
{% if not forloop.counter|divisibleby:"2" %}</tr>{% endif %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question