diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-15 05:54:28 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-15 05:54:28 +0000 |
| commit | b994387d8d9ff3b19d3ab04d3b4ac69d5dd68ea2 (patch) | |
| tree | 3fabfa4d7996c918d0e73bc8aa3c08f644a9ca97 /docs/ref/request-response.txt | |
| parent | 7be4b9a4c005639f03fcd096c3a53fffcb7f210c (diff) | |
Fixed #689 -- Added a middleware and authentication backend to contrib.auth for supporting external authentication solutions. Thanks to all who contributed to this patch, including Ian Holsman, garthk, Koen Biermans, Marc Fargas, ekarulf, and Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index fcf4523218..cd0edc063c 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -138,6 +138,7 @@ All attributes except ``session`` should be considered read-only. * ``QUERY_STRING`` -- The query string, as a single (unparsed) string. * ``REMOTE_ADDR`` -- The IP address of the client. * ``REMOTE_HOST`` -- The hostname of the client. + * ``REMOTE_USER`` -- The user authenticated by the web server, if any. * ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``. * ``SERVER_NAME`` -- The hostname of the server. * ``SERVER_PORT`` -- The port of the server. @@ -294,7 +295,7 @@ a subclass of dictionary. Exceptions are outlined here: Just like the standard dictionary ``setdefault()`` method, except it uses ``__setitem__`` internally. -.. method:: QueryDict.update(other_dict) +.. method:: QueryDict.update(other_dict) Takes either a ``QueryDict`` or standard dictionary. Just like the standard dictionary ``update()`` method, except it *appends* to the current @@ -357,11 +358,11 @@ In addition, ``QueryDict`` has the following methods: Like :meth:`items()`, except it includes all values, as a list, for each member of the dictionary. For example:: - + >>> q = QueryDict('a=1&a=2&a=3') >>> q.lists() [('a', ['1', '2', '3'])] - + .. method:: QueryDict.urlencode() Returns a string of the data in query-string format. @@ -452,7 +453,7 @@ Methods ------- .. method:: HttpResponse.__init__(content='', mimetype=None, status=200, content_type=DEFAULT_CONTENT_TYPE) - + Instantiates an ``HttpResponse`` object with the given page content (a string) and MIME type. The ``DEFAULT_CONTENT_TYPE`` is ``'text/html'``. |
