Ticket #5013: middleware-txt.diff
File middleware-txt.diff, 1.3 KB (added by , 17 years ago) |
---|
-
docs/middleware.txt
172 172 ``process_request()`` should return either ``None`` or an ``HttpResponse`` 173 173 object. If it returns ``None``, Django will continue processing this request, 174 174 executing 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``. 175 an ``HttpResponse`` object, Django won't bother calling ANY remaining request, 176 view, or exception middleware methods or the appropriate view; it'll return 177 that ``HttpResponse``. 177 178 178 179 process_view 179 180 ------------ … … 191 192 return either ``None`` or an ``HttpResponse`` object. If it returns ``None``, 192 193 Django will continue processing this request, executing any other 193 194 ``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, 196 view, or exception middleware methods or the appropriate view; it'll return 197 that ``HttpResponse``. 196 198 197 199 process_response 198 200 ----------------