Skip to content Skip to sidebar Skip to footer

Two Sets Of Users (teacher And Student) In Django Authentication

I'm building a web application where I have 2 sets of users (students and teachers). Teachers should be able to create their account, create a page of their content. Students shoul

Solution 1:

You could use permissions. When they sign up if they're a Teacher give them content creation permissions. If they're a student they don't get the permissions.

In the user profile I would just have a field that says which type they are. Unless a lot of the data is different I wouldn't have two user profiles.

Post a Comment for "Two Sets Of Users (teacher And Student) In Django Authentication"