15👍
✅
Which is because the first parameter is supposed to be a dictionary. You had perhaps mixed this up with the render short cut
template = loader.get_template('irtf/index.html')
return HttpResponse( template.render({}, request))
To use the render shortcut instead
return render(request,'irtf/index.html')
👤e4c5
Source:stackexchange.com