Hey guys!
Anybody know why in documentation we have status_code, but in reality I should use status?
Here is my view:
# this doesn't work
def click(request):
return HttpResponse("Here's the text of the web page.", status_code = 404)
# But this works!
def click(request):
return HttpResponse("Here's the text of the web page.", status = 404)
In code we see that constructor takes status. But django doc says status_code… Why?