开发者

Admin view access to other normal users in django

开发者 https://www.devze.com 2023-04-03 12:11 出处:网络
How can I give access for the开发者_开发百科 admin views to normal users in django?Go to the admin site and edit the user. Check the check box (under permissions) where it says:

How can I give access for the开发者_开发百科 admin views to normal users in django?


Go to the admin site and edit the user. Check the check box (under permissions) where it says:

"Staff status

Designates whether the user can log into this admin site."

You then need to grant them appropriate permissions for them to actually see things in the admin site. That is done just below this checkbox. If you want them to be able to do everything, check the "superuser" checkbox.

Is this what you mean?

Update

The OP actually wants to apply these permissions to a group of users. To do this, go to the admin site > Auth > Groups. Create a new group. Give it the permissions you want the group of users to have. You then need to go to each user and add them to this group. They will also need to be given "staff status" in order to log in to the admin site.

Is that what you are after?

0

精彩评论

暂无评论...
验证码 换一张
取 消