2019年11月5日浏览 76评论 0Django自定义中间件Middlewarefrom django.utils.deprecation import MiddlewareMixin # from django.http import HttpResponse from django.shortcuts import HttpResponse, redirect # 方式一: class MyM…阅读全文#python3#中间件