1👍
✅
In your views
return render(request, 'template/index.html', {'state':state, 'username':username}, c)
you should do
return render(request, 'template/index.html', {'state':state, 'username':username})
Right now you are passing c in place of context_instance argument that forces the use of a RequestContext.
Source:stackexchange.com