I have week_infos tuple and pass it to template
{{ week_infos.4.0 }}
This works. However the following does not:
{% for j in 7|get_range %}
<td row={{j}} col={{i|add:6}}>
{{ week_infos.j }}
How can I access a specific item item in a tuple?
You seem to be using the range in order to number your rows, however, you can do the same thing using a for loop’s counter if you loop over the week_infos tuple:
(Also, you should always wrap HTML attributes in quotes since they can contain spaces)