Serializer serializer

Serializer serializer effect: Serialization, the serializer will convert the model object into a dictionary, and then into a json string after responseDeserialization is to turn the data sent by the client into a dictionary after request. The serializer completes the data verification function, and then turns the dictionary into a model 1. D ...

Posted by ntroycondo on Tue, 01 Feb 2022 06:04:45 +0100

1-5. View component

chart 2 view base classes APIView rest_framework.views.APIView APIView is the base class of all views provided by the REST framework, which inherits from the View parent class of Django. APIView differs from View in that: - Passed into the view method is REST framework of`Request`Object, not Django of`HttpRequeset`Object; - View methods can r ...

Posted by LiquidEagle on Sun, 02 Jan 2022 18:57:29 +0100