Django REST Framework - Generic Views | ListAPIView & RetrieveAPIView

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

In this video, we'll introduce Generic Views in Django REST Framework - using the ListAPIView and RetrieveAPIView. We'll refactor function-based views to use the generic class-based views.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
02:53 ListAPIView in Django REST Framework generics module
06:35 RetrieveAPIView in Django REST Framework generics module
08:46 Changing lookup url kwarg for RetrieveAPIView
12:12 Changing base queryset for ListAPIViews

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

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

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

For real brother, I truly appreciate your work.
The explanation is rich because you explain everything behind each concept, allowing learners to understand what we do/code.

Be blessed!!! 🙏

ak-qin
Автор

crisp andd to the point, having good grasp in django core, this series is quite perfect, just focusing on apis/backeend part and not so long explainations. Keep it like this. finished this in 2 days. what i would llike in this series is, deployment on AWS. There is no content on YT market on this topic. not ec2, but like lambda or dockerised ECS fragatte launch type. May be u can start new series after that about deployment.

I know u getting lots of request on multiple topics, you should do poll regarding it. Would like any of this: 1) AWS deployment series 2) Django Ninja 3)extending this series to JWT and social auth
Do a poll please

Danish_Khan_
Автор

The real magic begins ! Great content, thank for all !

seydinaoumarsamabaly
Автор

Idk what to say, Just thank you and please keep doin what you do. You are extremely talanted and have a great approach to deliver knowledge. I mean, we all can read docummentation, however its not so always easy to understand easily and here in your videos, everything makes sense when you explain. Thank you !

gogasaldadze
Автор

amazing as always you should name your channel Django Home
please add image upload directly and from URL to this series and if you can make in same Model ability to add image from upload or from Url its will be very helpful

alexdin
Автор

Amazing as always. Can you consider stripe integration tutorial.

nedyalkokarabadzhakov
Автор

Hello thanks for your work! Any particular reason for prefering the mentioned classes over the ModelViewsets?

ipelezikis
Автор

Really enjoying the sessions. Currently I’ve been wanting to use the api versioning features. One issue I have is that it does not appear possible to use a class inheritance approach with QueryParameterVersioning because we don’t access query strings in the url patterns.

For the others, the URLs can reference a distinct view and that allows my API view on v2 to subclass all of the stuff from v1.

If you have any thoughts on making a video, it’d be super interesting.

ab_was_here
Автор

Can you also use Q to perform complex filters with the generic views?

daverobb
Автор

Please include Auth using Djoser and JWT

mlindatech