Рет қаралды 2,333
Lets discuss Routers and and Pagination in Django. Routers are automatically creates the URLS for ViewSets after registering them. Pagination is required when you have large list of data shown in different pages instead of single page.
Type of Routers
SimpleRouter
DefaultRouter
Types of Pagination
BasePagination
LimitOffsetPagination
CursorPagination
PageNumberPagination
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
• Python REST API - Djan...
♂ Django Rest Framework Tutorial -Installation and Setup -Chapter 2
• Installing Django Rest...
♂ Django Rest Framework Tutorial -Serializers -Chapter 3
• Create Serializers in ...
♂Django Rest Framework Tutorial -How to Serialize the Data without Model ?-Chapter 4
• Serialize Data without...
♂Types of Views in Django Rest Framework -Chapter 5
• Views in Django Rest F...
♂Class Based Views in Django Rest API- Chapter 6
• Class Based Views in D...
♂APIView CRUD Operatons Django Rest Framework Chapter7
• APIView CRUD Operatons...
♂Django Mixins CRUD Operations in Rest Framework Chapter8
• Django Mixins CRUD Ope...
♂Django Generic Views CRUD Operations in Rest Framework 9
• Django Generic Views C...
Official website :
www.django-res...
🎥 Django Tutorial - Health Insurance Claim Project
• Django Tutorial - Buil...
🎤 Good Tech Talks Playlist
• My Tech Talk
◉ Watch other AI videos
♂DataScience Dialogue - Open Source GPU DataScience #1
• Open Source Accelerate...
♂DataScience Dialogue - AutoML and DataRobot Demo #2
• DataRobot For AutoML ...
♂DataScience Dialogue - Machine Learning & NLP Best Practices #3
• Best Practices of Mach...
📱Please join in 🎭 Our Social Networking platforms🎭 for quick updates
-----------------
🎣 Facebook : /
🎣 Instagram : /
🎣 Twitter: /
🎣 LinkedIn : / iamp. .
🎣 Telegram : t.me/iampython...
#pythonapi #django #djangorestframework