ViewSets in Django Rest Framework and Types #10

preview_player
Показать описание
ViewSets are merge the logic for all related views in a single class. ViewSets are very simplest form of Class Based API views. Easy to Implement. There are different types of ViewSets.

1. ViewSet
2. GenericViewSet
3. ModelViewSet
4. ReadonlyModelViewSet

Types of Views
1. Function Based Views - @api_view([‘GET', 'POST'])
2. Class Based - class ClassName(APIView):
3. Generic Views - class ClassName(generics.ListCreateAPIView):
4. ViewSets - class UserViewSet(viewsets.ViewSet):
5. Mixins

✺ Previous Django Rest framework Videos :

♂ Django Rest Framework - Introduction Video - Chapter 1

♂ Django Rest Framework Tutorial -Installation and Setup -Chapter 2

♂ Django Rest Framework Tutorial -Serializers -Chapter 3

♂Django Rest Framework Tutorial -How to Serialize the Data without Model ?-Chapter 4

♂Types of Views in Django Rest Framework -Chapter 5

♂Class Based Views in Django Rest API- Chapter 6

♂APIView CRUD Operatons Django Rest Framework Chapter7

♂Django Mixins CRUD Operations in Rest Framework Chapter8

♂Django Generic Views CRUD Operations in Rest Framework 9

Official website :

🎥 Django Tutorial - Health Insurance Claim Project

🎤 Good Tech Talks Playlist

◉ Watch other AI videos

♂DataScience Dialogue - Open Source GPU DataScience #1
♂DataScience Dialogue - AutoML and DataRobot Demo #2
♂DataScience Dialogue - Machine Learning & NLP Best Practices #3

📱Please join in 🎭 Our Social Networking platforms🎭 for quick updates
————————————————-

#pythonapi #django #djangorestframework
Рекомендации по теме
Комментарии
Автор

I watched the entire series, it is a gem for Django rest framework API developer, Thank you very much for your time and effort.

fkamss
Автор

We have a single ViewSet for all 4 API endpoints, How do I debug a single API (put or delete) in postman? I didn't find any good Django debug tutorial, please help me.

fkamss
Автор

Thank you for making this easy and chart based explanation.... Keep going...and please make separate playlists of your django rest-framework videos.

shitalkurdane
Автор

Need more videos ... Loved of watching

anandraj
Автор

Can you please share the git repo/codebase. It is easier to compare or look up how these views differ in terms of code lines.

MallikaSrivastava-einz
Автор

Good vide brother.
could you kindly explain about django's custom user extension

kenafriq
Автор

Really great man, thanks a lot for this much effort. Full support to you now onwards. Keep making education video on python and django. Love from Nepal

amrit_upreti
Автор

The best explanation ever on youtube so far! Thank you very much sir.

sabarishni
Автор

your way of teaching is good keep it up

sudarshannbhat