summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-01-03 23:57:14 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-01-03 23:57:14 +0000
commit3234a932b2054e30604d29f93e65180fa7c3fc05 (patch)
tree63a8123b914ba794b2fd219736863b0007c69f8a /docs
parent6cca806943790a586a059bd2dacdf5d54e5f601d (diff)
Fixed #1117 -- Added HttpResponsePermanentRedirect
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/request_response.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt
index dea1cdb975..76882953bb 100644
--- a/docs/request_response.txt
+++ b/docs/request_response.txt
@@ -357,7 +357,14 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in
``HttpResponseRedirect``
The constructor takes a single argument -- the path to redirect to. This
can be a fully qualified URL (e.g. ``"http://www.yahoo.com/search/"``) or an
- absolute URL with no domain (e.g. ``"/search/"``).
+ absolute URL with no domain (e.g. ``"/search/"``). Note that this returns
+ an HTTP status code 302.
+
+``HttpResponsePermanentRedirect``
+ **New in Django development version.***
+
+ Like ``HttpResponseRedirect``, but it returns a permanent redirect (HTTP
+ status code 301) instead of a "found" redirect (status code 302).
``HttpResponseNotModified``
The constructor doesn't take any arguments. Use this to designate that a