Horje
httpresponseredirect vs redirect Code Example
httpresponseredirect vs redirect
There is a difference between the two:

In the case of HttpResponseRedirect the first argument can only be a url.

redirect which will ultimately return a HttpResponseRedirect can accept a model, view, or url as it's "to" argument. So it is a little more flexible in what it can "redirect" to.

I also like how redirect is shorter. So I'd use redirect over HttpResponseRedirect.

Both are fine to use though.




Whatever

Related
start local mongodb server windows Code Example start local mongodb server windows Code Example
por que usar np.log Code Example por que usar np.log Code Example
go to a level console comand ue4 Code Example go to a level console comand ue4 Code Example
How does the FEATURE FILE WORK? Code Example How does the FEATURE FILE WORK? Code Example
guldkedja 18k Code Example guldkedja 18k Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8