我有一个设置会话变量的重定向视图。但是,就好像会话在被重定向到的视图被调用之前是flush编辑的,因为整个会话都是空的。
(顺便说一句,这是真正的代码,我已经剪了一些东西来找原因,但还是找不到)。
class ActivateUserView(RedirectView):
def get(self, request, *args, **kwargs):
# activates user and redirects to listing
listing = Listing.objects.get(id=2)
request.session[
我正在尝试使用"Django Microsoft身份验证后端( Django microsoft Authentication Backend,)“在Django项目中登录,但是当我尝试使用我的微软凭据登录时,我仍然会收到这个错误。
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '******-*****-*****-*****-*********'.
我已经检查了我添加到django项目