阅读背景:

在django中为不同类型的用户提供不同配置文件的最佳方法是什么?

来源:互联网 

In my application I have students, professors and staff. Staff members do not need a profile but professors and students each need a different profile. I'd rather not implement it all myself (middleware and whatnot), so is there anyway to just have get_profile() return a different profile depending on a user's role?In my application I have students, professors a




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

分享到: