1👍
✅
You have reset the context when you are returning the response – since you didn’t pass in an instance of RequestContext
.
The quickest way to resolve this is to use the render
shortcut, that automatically passes in the correct context:
from django.shortcuts import render
def home(request):
return render(request, 'homepage.html', {})
Source:stackexchange.com