zip django template code example
Example 1: zip django template
mylist = zip(list1, list2)
context = {
'mylist': mylist,
}
return render(request, 'template.html', context)
Example 2: zip django template
{% for item1, item2 in mylist %}