How to create login user using Django Rest Framework

0 votes
Creating User using is_staff and is_superuser field that can view other user that register in system and allow and deny them into system.
Oct 11, 2020 in Python by Reebika
• 140 points
136 views

1 answer to this question.

0 votes

Hello @Reebika ,

For you query you can refer this:https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/

Hope it helps you!!

answered Oct 12, 2020 by Niroj
• 82,720 points

Related Questions In Python

0 votes
1 answer

How to PATCH a single field using Django Rest Framework?

Hello @kartik, Serializers allow partial updates by specifying partial=True when initializing ...READ MORE

answered Jun 25, 2020 in Python by Niroj
• 82,720 points
4,268 views
0 votes
1 answer

How to secure APIs for Registration and Login in Django Rest Framework?

Hello @kartik, you cannot have an authentication system ...READ MORE

answered Jun 25, 2020 in Python by Niroj
• 82,720 points
1,715 views
0 votes
1 answer

How to update user password in Django Rest Framework?

Hello @kartik, Using a modelserializer might be an ...READ MORE

answered Jul 1, 2020 in Python by Niroj
• 82,720 points
3,648 views
0 votes
1 answer

How to test an API endpoint with Django-rest-framework using Django-oauth-toolkit for authentication?

Hello @kartik, You should avoid making unneeded API calls, ...READ MORE

answered Jul 1, 2020 in Python by Niroj
• 82,720 points
1,115 views
0 votes
1 answer

How to get Request.User in Django-Rest-Framework serializer?

Hello @kartik, You cannot access the request.user directly. You need ...READ MORE

answered Aug 12, 2020 in Python by Niroj
• 82,720 points
3,479 views
0 votes
0 answers
0 votes
1 answer

how to download and install Django rest framework?

To install Django, you can simply open ...READ MORE

answered Apr 24, 2018 in Python by Christine
• 15,830 points
691 views
0 votes
1 answer
0 votes
1 answer

How to return the current user with Django Rest Framework?

Hello @kartik, The best way is to use ...READ MORE

answered Jun 25, 2020 in Python by Niroj
• 82,720 points
4,657 views