python/ Django之中间件 一.中间件 中间件共分为: (1)process_request(self,request) (2)process_view(self, request, callback, callback_args, callback_kwargs) (3)process_template_response(self,request,response) (4)process_exception(self, request, exception) (5)process_r…