分类: 第二章:请求响应组件

3 篇文章

02-02 响应模块
响应模块 1、作用 根据 用户请求URL 或 用户可接受的类型,筛选出合适的 渲染组件。 用户请求URL: http://127.0.0.1:8000/test/?format=json http://127.0.0.1:8000/test.json 2、内置渲染器 显示json格式:JSONRenderer 访问URL: http://127.0…
Copyright © 2022 Egon的技术星球 egonlin.com 版权所有 帮助IT小伙伴学到真正的技术