Creating a CRUD API Using Serializers | Learn Django REST Framework #4

preview_player
Показать описание
Creating a CRUD API Using Serializers
In this video, I walk through how to use our serializers inside the view functions so as to create, retrieve, update and delete resources of our API.

#Python #Django

Serializer documentation:

SOURCE CODE:

Please Buy me a Coffee:
Рекомендации по теме
Комментарии
Автор

@Ssali Jonathan. I searched lot of videos for serializers. You are the one who is very clear and sound. I am wondering on less subscribers.

Please add this too in your video.
serializer = tablesSerializers(instance=object, data=data, partial=True)
i.e partial=True.

Rider-nl
Автор

i'm having issues with the update function,
AssertionError: Expected a `Response`, `HttpResponse` or `StreamingHttpResponse` to be returned from the view, but received a `<class 'NoneType'>`

temitopeayoade
Автор

Nice vid. But isn't it better to handle the "POST" request of individual post in the "post_detail" function-based view, instead of in the "list_posts" function-based view? Or to handle "POST" request of individual post (i.e. creating a new post) in a separate function-based view?

rossli
Автор

The series is fantastic, if we don't take into account the "Hello G u/a ys" part ))))

JellyBeanR
join shbcf.ru