Ticket #5013: middleware-txt.diff

File middleware-txt.diff, 1.3 KB (added by Jason Yan <tailofthesun@…>, 8 years ago)
  • docs/middleware.txt

     
    172172``process_request()`` should return either ``None`` or an ``HttpResponse``
    173173object. If it returns ``None``, Django will continue processing this request,
    174174executing any other middleware and, then, the appropriate view. If it returns
    175 an ``HttpResponse`` object, Django won't bother calling ANY other middleware or
    176 the appropriate view; it'll return that ``HttpResponse``.
     175an ``HttpResponse`` object, Django won't bother calling ANY remaining request,
     176view, or exception middleware methods or the appropriate view; it'll return
     177that ``HttpResponse``.
    177178
    178179process_view
    179180------------
     
    191192return either ``None`` or an ``HttpResponse`` object. If it returns ``None``,
    192193Django will continue processing this request, executing any other
    193194``process_view()`` middleware and, then, the appropriate view. If it returns an
    194 ``HttpResponse`` object, Django won't bother calling ANY other middleware or
    195 the appropriate view; it'll return that ``HttpResponse``.
     195``HttpResponse`` object, Django won't bother calling ANY remaining request,
     196view, or exception middleware methods or the appropriate view; it'll return
     197that ``HttpResponse``.
    196198
    197199process_response
    198200----------------
Back to Top