Django REST Framework - Creating Data | ListCreateAPIView and Generic View Internals

preview_player
Показать описание
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

In this video, we'll look at how to consolidate GET and POST requests to the same endpoint, to list out and create products. We'll see the CreateAPIView initially, and will look at the ListCreateAPIView for consolidating the two operations. We'll also take a look at the internals of these generic views, and how mixins add list() and create() methods to perform the associated logic.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:46 Creating data with CreateAPIView
06:56 Consolidating List and Create operations with ListCreateAPIView

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

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

Obviously there is magic going on this channel. Thank for all man.

seydinaoumarsamabaly
Автор

Thank you, I was waiting for your next video about this section, it is interesting, I hope you upload more

Deus-lo-Vuilt
Автор

Has anyone ever told you that you’re a life saver?

ernestalidza
Автор

I am enjoying your lectures. They are wonderfull!!! When should we use Generic Views or API views. What is the deciding factor?

roadMapLearner
Автор

Thx for a video
4:25 can we use id field with read_only ?

noorhonjol
Автор

Thank you very much. Let me ask a question? if models has a choices field, How we know all choice (of this field) for select to create new record?

jpongthep
Автор

please explain do video on use case of celery in django real time project.

coolgirlsharu
visit shbcf.ru