summaryrefslogtreecommitdiff
path: root/docs/request_response.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-04-01 00:28:15 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-04-01 00:28:15 +0000
commit4efe9675c5fd5a030737d957b3588184f06117fe (patch)
treeb3ea195f6a3a281428c9cd5789e386493edc5379 /docs/request_response.txt
parent70913a2c4358de7341525ab0e913fafd213022c2 (diff)
queryset-refactor: Merged from trunk up to [7388].
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/request_response.txt')
-rw-r--r--docs/request_response.txt27
1 files changed, 13 insertions, 14 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt
index 0e0f046a2d..a4f03b9185 100644
--- a/docs/request_response.txt
+++ b/docs/request_response.txt
@@ -143,14 +143,13 @@ All attributes except ``session`` should be considered read-only.
``urlconf``
Not defined by Django itself, but will be read if other code
- (e.g., a custom middleware class) sets it; when present, this will
- be used as the root URLConf for the current request, overriding
+ (e.g., a custom middleware class) sets it. When present, this will
+ be used as the root URLconf for the current request, overriding
the ``ROOT_URLCONF`` setting. See `How Django processes a
request`_ for details.
.. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request
-
Methods
-------
@@ -202,19 +201,19 @@ Methods
``is_ajax()``
**New in Django development version**
- Returns ``True`` if the request was made via an XMLHttpRequest by checking
- the ``HTTP_X_REQUESTED_WITH`` header for the string *'XMLHttpRequest'*. The
- following major Javascript libraries all send this header:
+ Returns ``True`` if the request was made via an ``XMLHttpRequest``, by checking
+ the ``HTTP_X_REQUESTED_WITH`` header for the string ``'XMLHttpRequest'``. The
+ following major JavaScript libraries all send this header:
- * jQuery
- * Dojo
- * MochiKit
- * MooTools
- * Prototype
- * YUI
+ * jQuery
+ * Dojo
+ * MochiKit
+ * MooTools
+ * Prototype
+ * YUI
- If you write your own XMLHttpRequest call (on the browser side), you will
- have to set this header manually to use this method.
+ If you write your own XMLHttpRequest call (on the browser side), you'll
+ have to set this header manually if you want ``is_ajax()`` to work.
QueryDict objects
-----------------