code: def process_request(self, request):
          
          request.token = get_token(request)
          request.user = SimpleLazyObject(lambda: get_user(request))
          request._dont_enforce_csrf_checks = dont_enforce_csrf_checks(request)
docs: Lazy set user and token