

def process_request(self, request):
    assert hasattr(request, 'session'), "The Django authentication middleware requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware' before 'django.contrib.auth.middleware.AuthenticationMiddleware'."
    self.user = SimpleLazyObject((lambda : get_user(request)))

dataset/ETHPy150Open django/django/django/contrib/auth/middleware.py AuthenticationMiddleware.process_request/VarMisuse@22/91 `request`->`self`