If you getting this error, it might be because you are returning Http404 instead of raising it. you need to raise django.http.Http404, not return it. example code :
If you getting this error, it might be because you are returning Http404 instead of raising it. you need to raise django.http.Http404, not return it. example code :