Serializer vs ModelSerializer in DRF | Django Rest Framework Tutorial For Beginners | Code Aura

preview_player
Показать описание
#serializervsmodelserializer

In this video, I am going to show you the differences between serializer and modelserializer. The serializers and modelserializers can be written in two different ways and the serializers and modelserializers serve two different purposes in django rest framework.

Models have a very close relationship with serializers. If you think, you wanna have a little understanding or zero understanding about serializers and you might get away with this in DRF, then trust me, dude, you are out of the game.

I am gonna assume that you have watched my serializer video by now, and now we can go ahead and find out how many types of serializers are available in DRF.

I have a separate video about serializers, you can look for my "DRF essential playlist" to find out that video.

WATCH OUT MY DRF SERIALIZERSVIDEO:
Рекомендации по теме
Комментарии
Автор

You are a great teacher with crystal knowledge of concepts. We deserve more content from you.

avinash-xhqw
Автор

If we use model serializer we can use validated _data.pop("password") before saving to db. Right?

jacksonpatrick
Автор

Very informative.

Please upload such more videos

yetcomplete
Автор

Why do you say that the User model does not have the specified fields? They are also available as standard and can be used in ModelSerializer

febqij
Автор

Great vedios need next vedio in drf sooner.

saicharan
Автор

@CodeAura I see you stop making videos. Why ? You have a great content comparing to guys do not explain anything in details. We love your videos. Please Please continue.
I look forward to see how to use serializers with fields from other models, how to use to_representation how to your perform_create, perform_update and how to use methods @api_view(['POST', 'PATCH']) instead using class based views etc. Please continue to make videos :)

aoronbarlow