1👍
✅
You need to render the template. Change the last line to something like:
return HttpResponse(html.render(Context()))
You also need to import Context from django.template. You might also want to consider using the render_to_response shortcut. This stuff is covered in part 3 of the tutorial.
Source:stackexchange.com