Sunday, October 30, 2016

Re: how to create 2 different kind of user profiles using django python

Hi
If 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:59 PM, Amandeep Singh <amangujral@hotmail.com> wrote:
Hi
If 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 <yogitha1997@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-users@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 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-users@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/CAMi_2%3DFipXyvWwj%2BDOTr_Ac67mSRcpLZMSOEyZZGu0QfYkve_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment