HiIf student and warden have similar attributes and only differ in permission level than you could use the same User model for both of them and to provide different access levels by creating two different authorization groups for student and warden.
https://docs.djangoproject.com/en/1.10/topics/auth/default/#topic-authorization
On Sun, Oct 30, 2016 at 7:18 PM, YOGITHA A N <yogit...@gmail.com> wrote:
Hey,I am new to django . Please let me know how to create 2 various kind of user profiles in django. I am doing a hostel management system using django where in I have 2 kinds of users one is a student and the other is the warden.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/22ce8644-2a9d-430c-a565-39ab94664d88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can start by designing your warden and student models in which each of them inherit the django inbuilt user model class.
Each model would then have attribute that is peculiar to it alone.
Hey,I am new to django . Please let me know how to create 2 various kind of user profiles in django. I am doing a hostel management system using django where in I have 2 kinds of users one is a student and the other is the warden.
--