阅读背景:

如何在django视图中跨不同应用程序登录用户

来源:互联网 

I have a django application called 'main'. user authentication and everything seems fine. And I created a new app called 'upload' from startapp command. user can login on 'main' app but I can not get the logged in user from request.user on views of another app ('upload' app). It returns Anonymous user all the time. any way to get the logged in user? many thanks in advance.I have a django application called 'main'. user




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: