Answers for "iterate through multiple lists django"

0

iterate through multiple lists django

#views.py
mylist = zip(list1, list2)
context = {
            'mylist': mylist,
        }
return render(request, 'template.html', context)
#in template file
{% for item1, item2 in mylist %}
Posted by: Guest on September-20-2021

Code answers related to "iterate through multiple lists django"

Browse Popular Code Answers by Language