how to use for x, y in a, b in templates django 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 %}