摘要: 文章目录 1. 视图2. 两个视图基类1. APIView2 GenericAPIView Django REST fr... 阅读全文
posted @ 2021-06-08 08:52 阿无oxo 阅读(28) 评论(0) 推荐(0)
摘要: 文章目录 1. Request常用属性1).data2).query_params 2.Response2.1 构造方式... 阅读全文
posted @ 2021-06-06 22:48 阿无oxo 阅读(76) 评论(0) 推荐(0)
摘要: 文章目录 序列化器-Serializer1. 定义序列化器2.创建Serializer对象3.序列化器的使用3.1 序列化3.2 ... 阅读全文
posted @ 2021-06-06 12:26 阿无oxo 阅读(107) 评论(0) 推荐(0)
摘要: 1.Pytest安装和介绍 1. Pytest介绍 pytest是python的一种单元测试框架,同自带的Unittest测试框架类... 阅读全文
posted @ 2021-06-01 08:50 阿无oxo 阅读(84) 评论(0) 推荐(0)
摘要: 1. Django Rest_Framework 核心思想: 缩减编写api接口的代码 Django REST framework是... 阅读全文
posted @ 2021-05-30 11:01 阿无oxo 阅读(69) 评论(0) 推荐(0)
摘要: 1. 域名 应该尽量将API部署在专用域名之下。 https://api.example.com 如果确定API很简单,不会有进一步... 阅读全文
posted @ 2021-05-29 16:11 阿无oxo 阅读(137) 评论(0) 推荐(0)
摘要: 后台管理 1.后台管理页面之首页 2.后台管理页面之文章添加页 1.首页 base.html 1.引入backend.cs... 阅读全文
posted @ 2021-05-28 07:15 阿无oxo 阅读(384) 评论(0) 推荐(0)
摘要: 问题:Refused to display ‘url’ in a frame because it set ‘X-Frame-Opt... 阅读全文
posted @ 2021-05-24 20:38 阿无oxo 阅读(71) 评论(0) 推荐(0)
摘要: 步骤一:python -m pip install --upgrade pip步骤二:python -m pip install -... 阅读全文
posted @ 2021-04-14 21:14 阿无oxo 阅读(58) 评论(0) 推荐(0)
摘要: 0.博客数据库结构图 1.用户表:UserInfo 字段名字段类型补充nidAutoFieldprimary_key=Truete... 阅读全文
posted @ 2021-04-14 21:04 阿无oxo 阅读(90) 评论(0) 推荐(0)