[Django]-Django multiple contexts within a single view

10👍

You have almost got it right. Just change

return render(request, 'polls/productpage.html', {'product': product}, {'image':image})

to

return render(request, 'polls/productpage.html', {'product': product, 'image':image})
👤Anup

Leave a comment