Add variable to Django request object in Middleware (once)

前端 未结 0 1510
傲寒
傲寒 2021-01-12 19:26
class CustomMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response


    def __call__(self, request):

        response = self.ge         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题