django rest framework之七:mixins模块及其GenericAPIView类源码分析
简单使用url配置如下:url(r"books/$",views.BookView.as_view()),url(r"bookdetail/(P\d+)/$",views.BookViewDetail.as_view()),model类解析,用来校验请求参数的classBookSerializers(serializers.ModelSerializer):classMeta:model=Book