摘要: ORM ''' filter示例使用 ''' ''' res = Xyuser.objects.filter(id=request.data.get('id'), role_id__in=(2, 5)).update(is_active=0) instance = Xyuser.objects.fi 阅读全文
posted @ 2022-08-03 19:49 pearlcity 阅读(226) 评论(0) 推荐(0) 编辑
摘要: vue调试方法 设置前端网站ip和端口 修改后端api地址 一、运行环境 1、首先下载安装node.js从node.js官网下载并安装node 2、添加 node.js 环境变量 3、安装cnpm由于npm有些资源被屏蔽或者是国外资源的原因,经常会导致用npm安装依赖包的时候失败,所有我还需要npm 阅读全文
posted @ 2022-07-30 22:11 pearlcity 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 常用错误提示及原因 1、数据库连接不上 OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: '<frozen importlib._bootstrap>' 2、声明app A、在setting.py中apps中声明 B、app名字目录下 apps.py文件中声明 fr 阅读全文
posted @ 2022-07-28 10:59 pearlcity 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-07-25 16:59 pearlcity 阅读(29) 评论(0) 推荐(0) 编辑
摘要: def dict_fetchall(cursor): # 将查询多行数据 转为 json列表 # return all rows from a cursor as a dict list columns = [col[0] for col in cursor.description] return 阅读全文
posted @ 2022-07-20 16:39 pearlcity 阅读(41) 评论(0) 推荐(0) 编辑
摘要: linux系统python设置源 pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/python -m pip install --upgrade pip -i http://pypi.douban.com/s 阅读全文
posted @ 2022-07-02 23:57 pearlcity 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 0、特别注意: 一顿操作下来,使用root权限的命令方式是: su - 用户名 例如: su - chenjiafa ,然后输入 chenjiafa的密码 1、添加普通用户[root@server ~]# useradd chenjiafa //添加一个名为chenjiafa的用户[root@ser 阅读全文
posted @ 2022-06-26 05:38 pearlcity 阅读(6735) 评论(0) 推荐(0) 编辑
摘要: 老师陈昕老师开的咳嗽药方 阅读全文
posted @ 2022-06-20 21:54 pearlcity 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 注意事项目 一、将阿里云服务器80、8088、9000、3306四个端口打开;二、部署顺序:mysql》》》nginx》》》redis》》》django》》》fastapi三、mysql1、修改远程访问密码,跟django和fastapi中设置文件(settings.py和config.py)的密码 阅读全文
posted @ 2022-05-26 13:59 pearlcity 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、固件在百度网盘 二、安装教程:http://www.linklab.tech/post/moode7%20x86%20%E5%AE%89%E8%A3%85.html 三、安装后登录用户名和密码:http://www.linklab.tech/post/moode7forX86.html 四、局域 阅读全文
posted @ 2022-04-03 11:26 pearlcity 阅读(1470) 评论(0) 推荐(0) 编辑