摘要: import jwt # 加密 encode_jwt=jwt.encode({'uid':'123'},'密钥123',algorithm='HS256') print(encode_jwt) # 解密 encode_jwt=str(encode_jwt,encoding='utf-8') # 转码 阅读全文
posted @ 2020-10-28 16:49 睁yan-ii 阅读(6940) 评论(0) 推荐(0) 编辑
摘要: redis 常用基本命令 redis-cli 启动set 键 值 # 存储 单条数据 # set ‘zsj’ ‘bab’ get 键 # 通过键获取值 # get ‘zsj’ select 1 # 使用 1号库 flushall # 清空数据库 keys * # 查看所有数据 set num 1 i 阅读全文
posted @ 2020-10-28 16:35 睁yan-ii 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 开启docker 拉取redis镜像 1.1 桌面版docker 在镜像所在位置命令行执行 docker load -i redis.tar 1.2 开启redis docker run -p 6380:6379 redis # 6380 自己设置端口号 集群端口不重复 1.3 在redis 下 阅读全文
posted @ 2020-10-28 09:38 睁yan-ii 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 1 格式 <template> <div> <center><h1>这是·注册页面</h1></center> <a-form-item label="用户名" v-bind="formlayout"> <a-input v-model="username"/> </a-form-item > <a 阅读全文
posted @ 2020-10-27 21:56 睁yan-ii 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 测试 获取验证码 import smtplib from email.mime.text import MIMEText from email.utils import formataddr #定义参数 my_mail = "2501186626@qq.com" #授权码 my_pass = "qn 阅读全文
posted @ 2020-10-27 21:44 睁yan-ii 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 报错信息 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0. 原因 原因是 MySQLclient 目前只支持到 Python3.4,你使用了更高版 阅读全文
posted @ 2020-10-27 21:35 睁yan-ii 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 1 redis 存储验证码 基本使用 1.1 setting 配置 CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", # 使用的库1 阅读全文
posted @ 2020-10-27 21:32 睁yan-ii 阅读(2244) 评论(0) 推荐(0) 编辑
摘要: 1 Git 克隆别人的项目 git clone 地址 git pull 克隆更新数据 2 Git 提交码云 1. git init 2. git add -A 3.git commit -m['初始化'] 4 git remote add origin https://gitee.com/youyi 阅读全文
posted @ 2020-10-26 19:21 睁yan-ii 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1.安装docker Desktop时遇到的错误 1.1安装Docker Desktop报错:WSL 2 installation is incomplete 解决: # 更新版本 https://blog.csdn.net/qq_39611230/article/details/108625840 阅读全文
posted @ 2020-10-26 19:13 睁yan-ii 阅读(309) 评论(0) 推荐(0) 编辑
摘要: this.$router.push({path:'/shop',query:{ goods_name:goods_name, goods_price:goods_price, uid:goods_price }}) 获取路由值 return{ uid:sessionStorage.getItem(' 阅读全文
posted @ 2020-10-23 19:01 睁yan-ii 阅读(1590) 评论(0) 推荐(1) 编辑