In my django view, I have a list that looks like the above (except 50 lists embedded within the big list.
In my template, how do I use a for loop to reference to display each of the elements within every list?
I am also trying to access a particular element within a list, for example the element ‘c’ in the below example. I tried feed[0][1] in the template but received an error.
feed = [ [0,a,b,c], [1,d,e,f], ... ]
{% for video in feed %}
#not sure what to put here
{% endfor %}
Something like this:
videois again a list so you can again iterate over it to getitemin it and use it to render appropriate html.EDIT: With reference to comment by #jdi and updated question, if you want to access particular element of list you can do: