Role based Authentication

57 views
Skip to first unread message

LokRaj Kumar Vuppu

unread,
Jul 7, 2021, 10:08:01 AM7/7/21
to Django users
How to assign a role to user when registered into our application.

DJANGO DEVELOPER

unread,
Jul 7, 2021, 10:46:37 AM7/7/21
to Django users
f

On Wed, Jul 7, 2021 at 7:07 PM LokRaj Kumar Vuppu <lokrajku...@gmail.com> wrote:
How to assign a role to user when registered into our application.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/21f87894-278b-4705-83cb-9a426ea85ee7n%40googlegroups.com.

Avi shah

unread,
Jul 7, 2021, 11:17:46 AM7/7/21
to django...@googlegroups.com

Lalit Suthar

unread,
Jul 7, 2021, 12:53:21 PM7/7/21
to django...@googlegroups.com

sum abiut

unread,
Jul 7, 2021, 7:54:33 PM7/7/21
to django...@googlegroups.com
From the admin site you can create different groups and then assign specific users to specific groups. 
then  filter users' roles based on the specific group that you have assigned them to.



DJANGO DEVELOPER

unread,
Jul 7, 2021, 10:14:34 PM7/7/21
to Django users
Avi Shah I have just visited your github repo. is there any other code where you have performed multi-user sign up with FBV's?

Avi shah

unread,
Jul 8, 2021, 12:58:02 AM7/8/21
to django...@googlegroups.com
you can normally do it using fbv's , just make sure while saving the model , you also save the user model also parallely with the student model(in reference with my repo) 

DJANGO DEVELOPER

unread,
Jul 8, 2021, 2:33:38 AM7/8/21
to Django users
can you please give me a example? so that I can understand it well. thanks in advance.

Virus-free. www.avast.com

Mihir Patel

unread,
Jul 21, 2022, 1:14:30 PM7/21/22
to Django users
i am unable to authenticate normal user, can anyone help me?, when i try to normal user login in, it show's me same login page after putting right credentials, when i checked built in authenticationform in django folder in vscode it show's me 162 errors in terminal, can anyone help, what problem could be?, i have attached forms.py where i am getting an errors.
forms.py
Reply all
Reply to author
Forward
0 new messages