Django

Code

Show
Ignore:
Timestamp:
03/24/08 23:42:21 (5 months ago)
Author:
adrian
Message:

Edited some docs changes from the past few days

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/request_response.txt

    r7334 r7361  
    144144``urlconf`` 
    145145    Not defined by Django itself, but will be read if other code 
    146     (e.g., a custom middleware class) sets it; when present, this will 
    147     be used as the root URLConf for the current request, overriding 
     146    (e.g., a custom middleware class) sets it. When present, this will 
     147    be used as the root URLconf for the current request, overriding 
    148148    the ``ROOT_URLCONF`` setting. See `How Django processes a 
    149149    request`_ for details. 
    150150 
    151151.. _How Django processes a request: ../url_dispatch/#how-django-processes-a-request 
    152  
    153152 
    154153Methods 
     
    203202   **New in Django development version** 
    204203 
    205    Returns ``True`` if the request was made via an XMLHttpRequest by checking 
    206    the ``HTTP_X_REQUESTED_WITH`` header for the string *'XMLHttpRequest'*. The 
    207    following major Javascript libraries all send this header: 
    208  
    209    * jQuery 
    210    * Dojo 
    211    * MochiKit 
    212    * MooTools 
    213    * Prototype 
    214    * YUI 
    215  
    216    If you write your own XMLHttpRequest call (on the browser side), you will 
    217    have to set this header manually to use this method
     204   Returns ``True`` if the request was made via an ``XMLHttpRequest``, by checking 
     205   the ``HTTP_X_REQUESTED_WITH`` header for the string ``'XMLHttpRequest'``. The 
     206   following major JavaScript libraries all send this header: 
     207 
     208       * jQuery 
     209       * Dojo 
     210       * MochiKit 
     211       * MooTools 
     212       * Prototype 
     213       * YUI 
     214 
     215   If you write your own XMLHttpRequest call (on the browser side), you'll 
     216   have to set this header manually if you want ``is_ajax()`` to work
    218217 
    219218QueryDict objects