[Solved] Why am I receiving this Template error in my django tutorial?


You are making a type mistake while sending the template name in detail view.

return render(request, 'polls/detail.html', {'question':question})

You have set the template name as 'polls/detail.html' but your template is details.html in your file.

Rename the template file to detail.html and it will work fine.

0

solved Why am I receiving this Template error in my django tutorial?