Django

Code

Changeset 6576

Show
Ignore:
Timestamp:
10/21/07 07:24:37 (11 months ago)
Author:
mtredinnick
Message:

Fixed #5013 -- Corrected the documentation about which how further middleware
processing is done after request or view middleware returns something. Thanks,
Jason Yan.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r6570 r6576  
    330330    Maciej Wiśniowski <pigletto@gmail.com> 
    331331    wojtek 
     332    Jason Yan <tailofthesun@gmail.com> 
    332333    ye7cakf02@sneakemail.com 
    333334    ymasuda@ethercube.com 
  • django/trunk/docs/middleware.txt

    r5875 r6576  
    179179object. If it returns ``None``, Django will continue processing this request, 
    180180executing any other middleware and, then, the appropriate view. If it returns 
    181 an ``HttpResponse`` object, Django won't bother calling ANY other middleware or 
    182 the appropriate view; it'll return that ``HttpResponse``. 
     181an ``HttpResponse`` object, Django won't bother calling ANY other request, 
     182view or exception middleware, or the appropriate view; it'll return that 
     183``HttpResponse``. Response middleware is always called on every response. 
    183184 
    184185process_view 
     
    198199Django will continue processing this request, executing any other 
    199200``process_view()`` middleware and, then, the appropriate view. If it returns an 
    200 ``HttpResponse`` object, Django won't bother calling ANY other middleware or 
    201 the appropriate view; it'll return that ``HttpResponse``. 
     201``HttpResponse`` object, Django won't bother calling ANY other request, view 
     202or exception middleware, or the appropriate view; it'll return that 
     203``HttpResponse``. Response middleware is always called on every response. 
    202204 
    203205process_response 
     
    237239    * Feel free to look at Django's available middleware for examples. The 
    238240      core Django middleware classes are in ``django/middleware/`` in the 
    239       Django distribution. The session middleware is in ``django/contrib/sessions``. 
     241      Django distribution. The session middleware is in 
     242      ``django/contrib/sessions``. 
    240243 
    241244    * If you write a middleware component that you think would be useful to