摘要: 1.APIview使⽤ djangorestframework使用:https://www.cnblogs.com/xiaonq/p/10124104.html DjangoRestFramework使用:https://www.cnblogs.com/xiaonq/p/10987889.html 阅读全文
posted @ 2020-10-27 21:57 460限定用户 阅读(86) 评论(0) 推荐(0) 编辑
摘要: RESTful风格API 1.RESTful风格API ​ 详细内容可以参考: https://www.cnblogs.com/xiaonq/p/10053234.html 1.1 什么是RESTful REST与技术无关,代表的是一种软件架构风格(REST是Representational Sta 阅读全文
posted @ 2020-10-27 21:00 460限定用户 阅读(105) 评论(0) 推荐(0) 编辑
摘要: MVC与MVT设计模式的区别 MVC设计核心: 解耦,让不同的代码块之间降低耦合,增强代码的可扩展性和可移植性,实现向后兼容. MVC各部位的功能 1、MVC架构 MVC架构把一个完整的程序或者网站项目分成三个主要的组成部分,分别是Model模型,View视图,Controller控制器 希望一个项 阅读全文
posted @ 2020-10-26 21:50 460限定用户 阅读(391) 评论(0) 推荐(0) 编辑
摘要: python支付宝支付 1.1 支付宝介绍 1、支付宝开发网址 支付宝开放平台: https://open.alipay.com/platform/home.htm 支付宝沙箱环境: https://openhome.alipay.com/platform/appDaily.htm?tab=info 阅读全文
posted @ 2020-10-15 07:15 460限定用户 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1.1 七牛云存储介绍 1、七牛云存储使用参考文档 # 七牛云管理后台地址 https://portal.qiniu.com/kodo/bucket # 七牛云使用 https://developer.qiniu.com/kodo/manual/1233/console-quickstart # p 阅读全文
posted @ 2020-10-15 07:13 460限定用户 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1.Ubuntu开发环境初始化 1-1、安装VMware 15 1-2、安装Ubuntu 18.04 1-3、Ubuntu设置静态IP 1-4、Ubuntu root⽤户登录 1-5、Ubuntu安装Pycharm并激活 1-6、安装mysql 1-7、安装redis 1-8、安装使⽤virtual 阅读全文
posted @ 2020-10-13 16:31 460限定用户 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 表结构基类写法 在utils/MyBaseModel.py中配置一下内容 from django.db import models class Base(models.Model): create_time = models.DateTimeField('创建时间', auto_now_add=Tr 阅读全文
posted @ 2020-10-13 07:18 460限定用户 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 序列化常用字段参数 '''1. 选项参数''' name = serializers.CharField(min_length=3,max_length=20) max_length # 最大长度 min_lenght # 最小长度 allow_blank # 是否允许为空 max_value # 阅读全文
posted @ 2020-10-12 23:59 460限定用户 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1.微博绑定用户接口 1.1 oauth/urls.py 中添加路由 urlpatterns = [ path('weibo/binduser/', views.OauthWeiboBindUser.as_view()), # /oauth/weibo/callback/ ] 1.2 oauth/v 阅读全文
posted @ 2020-10-12 00:21 460限定用户 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1.vue微博回调空页面 注:微博回调空页面为: http://127.0.0.1:8888/oauth/callback/ 1.1 页面路径 components\oauth.vue <template> <div> <div v-show='visiable'> 绑定用户 用户名: <input 阅读全文
posted @ 2020-10-12 00:16 460限定用户 阅读(78) 评论(0) 推荐(0) 编辑