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?

 

django用户状态Active和Staff status区别

相关文章:

  • 2021-05-28
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-14
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
相关资源
相似解决方案