Class Based Views in Django Rest API- Chapter 6

  Рет қаралды 2,352

IamPython

IamPython

Күн бұрын

In this video, we are discussing Class-based views in Django Rest Framework. Serializing all the products from the database by extending APIView class and using the get method. We can also display specific products (Detailed View) using get with parameters through Django URL.
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...
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

Пікірлер: 7
@codedjango
@codedjango 3 жыл бұрын
Nice..It would be great if you cover nested serializers...
@IamPython
@IamPython 3 жыл бұрын
Sure. I will cover in subsequent tutorials :)
@oruchkin
@oruchkin 3 жыл бұрын
very good
@ViruSahastrabuddhe
@ViruSahastrabuddhe 2 жыл бұрын
Messages displayed in between are disappearing way too fast.. give us chance to read it for 3 seconds atleast..
@IamPython
@IamPython 2 жыл бұрын
Thanks for feedback! I will definitely consider and act on the same :)
@anandraj2895
@anandraj2895 3 жыл бұрын
What is the difference between class and function based views
@IamPython
@IamPython 3 жыл бұрын
@Anad Raj Function Based views (FBV) are easy to write without having background knowledge on object oriented Programming (OOPS). FBV’s are easy to implement. But reusability is missing when use it. In other side, Class Based Views (CBV) are maintains code reusability as we can implement inheritance concepts. Well maintained code structure. But we need to remember predefined variables such as template_name and form_class ( Django core) People who comes from the Jav, Dot NET, and other object oriented programming can easily understand the CBV. Django initially started only FBV later they introduced CBV. This is your choice based on your project and skills which you have.
APIView CRUD Operatons Django Rest Framework Chapter7
29:41
IamPython
Рет қаралды 2,8 М.
Routers and Pagination in Django Rest Framework
14:20
IamPython
Рет қаралды 2,3 М.
Это было очень близко...
00:10
Аришнев
Рет қаралды 1,1 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 11 МЛН
The Biggest Issues I've Faced Web Scraping (and how to fix them)
15:03
If Your Tech Job is Comfortable, You're in Danger
20:57
Thriving Technologist
Рет қаралды 11 М.
Build a Django CRUD Application with Class Based Views
39:50
Very Academy
Рет қаралды 24 М.
Django Generic Views CRUD Operations in Rest Framework
11:12
IamPython
Рет қаралды 4,1 М.
Python FastAPI Tutorial: Build a REST API in 15 Minutes
15:16
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 55 М.