I'm not understanding the differences between HttpResponse
and HttpResponseRedirect
.
Could someone explain to me?
I'm not understanding the differences between HttpResponse
and HttpResponseRedirect
.
Could someone explain to me?
The HttpResponseRedirect
class is a subclass of HttpResponseRedirect
designed to simplify the job of sending a redirect to another web page instead of sending data.
According to the HTTP protocol, there are different response states: HTTP States
In summary:
HttpResponse
: It is the class that is responsible for sending information of different types to the client.
HttpResponseRedirect
: It is a subclass that only serves to send url addresses to those that the client redirects.