F
F
Flaca Strexy2021-06-12 21:09:45
Django
Flaca Strexy, 2021-06-12 21:09:45

How to output through templates a sheet in a sheet in django?

In the context of the page, a list is supplied by type
. How can it be parsed correctly in html?

{{ list[0][0] }}- does not work

{% for v in list %}
{% for i in v %}
i
{% endif %}
{% endif %}
- doesn't work either

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-06-12
@flacastrexy

{{ list.0.0 }}
or

{% for v in list %}
  {% for i in v %}
    {{ i }}
  {% endif %}
{% endif %}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question