[英]Should I use django admin panel for regular users?
I am currently trying to make a learning app. 我目前正在尝试制作一个学习应用。 The three main users would be the Admin, Teacher and Student.
三个主要用户是管理员,教师和学生。 Should I use the django admin panel for the teachers ?
我应该为老师使用django管理面板吗? It has a lot of features and is fully customizable and I can choose what a teacher can do or not from there.
它具有很多功能并且可以完全自定义,我可以从那里选择老师可以做什么或不能做什么。 Is this a correct approach ?
这是正确的方法吗?
While you can use the admin panel for all users, I don't recommend it. 虽然您可以对所有用户使用管理面板,但我不建议这样做。 Security is tight, but not very flexible.
安全性很严格,但不是很灵活。 Also, dedicated pages developed for your user functions can be better suited for the job from both the design and functionality standpoints.
此外,从设计和功能的角度来看,为用户功能开发的专用页面可能更适合该工作。
Take the time to develop quality pages for your users. 花时间为您的用户开发高质量的页面。 You won't regret it.
你不会后悔的。
Yes you can use admin panel for your teachers. 是的,您可以为老师使用管理面板。 for this Purpose you need to mark them as staff to login in admin panel and set for them permissions you want to add them.
为此,您需要将他们标记为职员以在管理面板中登录,并为他们设置要添加他们的权限。
You should give an admin panel to all users. 您应该为所有用户提供一个管理面板。 However, limit what certain users see.
但是,限制某些用户看到的内容。
Example: Students shouldn't be able to create courses in the panel but Admins could. 示例:学生不应在面板中创建课程,但管理员可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.