Django Rest User Registration API

Опубликовано: 16 Май 2026
на канале: Techies Eyes
13,517
57

So far we created our Task APP with simple Task Name & Task Description Then we added Image & File Upload (Attachment to Task) & at the last we Apply some Filtering based on Task Status & Searching.

In this video, we will create a simple end-point for user registration.
in subsequent videos we will see how a Task can associate with user and owner can perform CRUD Operation on associated Tasks.

1. modify Task View to add PERMISSION Class (IsAuthenticated) #We can add or modify default Permission class in settings.py file
2. add UserRegister Serializer. #we assume that Developer can use either Django built-in User Model or Custom Model.
3. add CreateUserView View with Permission (AllowAny) and here we use CreateAPIView (DRF Generic Views). bcoz we will explore more on Generic Views in future videos
4. add user register end-point to url.py
5. add login redirect in settings.py
6. Test API.