摘要: 1.基本介绍 前后端不分离:https://www.cnblogs.com/xiaonq/p/12363589.html 1.1 安装 pip install drf-haystack # django的开源搜索框架 pip install whoosh # 搜索引擎 pip install jie 阅读全文
posted @ 2020-10-20 09:56 睁yan-ii 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.倒排索引 搜索引擎中存储的是倒排索引,就是分好的词,和词语文章的关联 事先把文章使用分词打散,以词为依据,标记清楚对应的文章的编号 查询时 把查询的语句也进行分词,然后根据分词,找到那些文章中包含了这些词 2.django创建全文索引的过程 1.django中提供的是结构化数据 2.haysta 阅读全文
posted @ 2020-10-20 09:36 睁yan-ii 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1.1 syl/setings.py中配置支付相关参数 ALIPAY_APPID = '2016101800716047' # 沙箱环境中alipay应用ID ALIPAY_DEBUG = True ALIPAY_URL = 'https://openapi.alipaydev.com/gatewa 阅读全文
posted @ 2020-10-15 21:28 睁yan-ii 阅读(5438) 评论(0) 推荐(0) 编辑
摘要: 2.新建支付宝应用 2.1 下载支付宝生成软件密钥 # 访问"支付宝开发平台"登录,可以访问开发者中心 https://open.alipay.com/platform/home.htm # 可以参考"电脑网站支付" 熟悉电脑支付整体流程 https://docs.open.alipay.com/2 阅读全文
posted @ 2020-10-15 20:24 睁yan-ii 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 参照网址 https://developer.qiniu.com/kodo/sdk/1242/python #pip install qiniufrom qiniu import Auth #需要填写你的 Access Key 和 Secret Key access_key = '' secret_ 阅读全文
posted @ 2020-10-15 20:17 睁yan-ii 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 1. 始vue化项目 vue init webpack deaxios # 使用脚手架创建项目 deaxios(项目名,随便取得) cd deaxios # 进入项目cnpm install npm install axios -S # 安装axios 2.封装axios 2.1 src文件夹下新建 阅读全文
posted @ 2020-10-14 07:43 睁yan-ii 阅读(1439) 评论(0) 推荐(0) 编辑
摘要: 实验楼表序列化 图片实列: model from utils.MyBaseModel import Base from django.db import models # # Create your models here. # 课程类别 class CourseType(Base): title 阅读全文
posted @ 2020-10-13 14:07 睁yan-ii 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #课程标签 class CourseTag(Base): title = models.CharField('课程标签', max_length=32) sequence = models.IntegerField('展示顺序', default=10) class Meta: db_table = 阅读全文
posted @ 2020-10-13 08:18 睁yan-ii 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 实验楼表关系图 from utils.MyBaseModel import Base from django.db import models # # Create your models here. # 课程类别 class CourseType(Base): title = models.Cha 阅读全文
posted @ 2020-10-13 07:22 睁yan-ii 阅读(119) 评论(0) 推荐(0) 编辑
摘要: django初始化项目 1.初始化项目结构└─shiyanlou_project │ .gitignore│ README.en.md # 英文│ README.md # 中文项目简介│├─celery_task # 用来存放celery相关文件│ init.py│├─db # 数据库相关:1.数据 阅读全文
posted @ 2020-10-11 20:15 睁yan-ii 阅读(573) 评论(0) 推荐(0) 编辑