Staff status:能登录admin后台没问题
Active啥意思记得是能登录非admin的前台页面,今天确认了下就是这样。
可以拿这个既能用户前台登录又能管理员后台登录的django开源博客系统测试
https://github.com/stacklens/django_blog_tutorial
假如有一个用户:test
如果用户状态是Active和Staff status,那么博客系统的前台后台都能登录。
如果用户状态只是Active,那么只能登录系统的前台系统,不能登录admin后台
错误提示:
You are authenticated as test, but are not authorized to access this page. Would you like to login to a different account?