10 解析器与渲染器

编辑本文章

GGGG-XXXX博客

 1、什么是解析器?

对前请求体中的数据进行解析,解析成python对应格式

Accept:接收的数据类型

ContentType:返回的数据类型

2、Django解析器

只能解析multipart/form-dataapplication/x-www-form-urlencoded

3、DRF解析器

 

  

4、DRF渲染器

 

posted @ 2019-06-26 09:27  丫丫625202  阅读(97)  评论(0编辑  收藏  举报