Hierarchy of project DRF

Total is divided into four relationships.

First layer: View

Parameters passed to the receiver front-end, and implement business logic related to data processing, and data is transmitted to the deserializer by creating a form of a sequence of object.

Second layer: serializer

Receiver front-end data transfer, and data serialization operation, and then passed to the model.

Third layer: model

Receiver serializer transferred data, converts the data into a sequence of model data is transmitted, and passes the data to the data table.

Fourth layer: Datasheet

Saving the received data transfer model, and the data in the database.

Guess you like

Origin www.cnblogs.com/chao666/p/12320962.html