class HttpResponseRedirect
[source]
The first argument to the constructor is required – the path to redirect to. This can be a fully qualified URL (e.g. 'https://www.yahoo.com/search/'
), an absolute path with no domain (e.g. '/search/'
), or even a relative path (e.g. 'search/'
). In that last case, the client browser will reconstruct the full URL itself according to the current path. See HttpResponse
for other optional constructor arguments. Note that this returns an HTTP status code 302.
-
url
-
This read-only attribute represents the URL the response will redirect to (equivalent to the
Location
response header).
Please login to continue.