会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
17
下一页
2024年2月26日
Python Django适配dm8(达梦)数据库
摘要: 官方文档 https://eco.dameng.com/document/dm/zh-cn/start/python-development.html Django适配达梦 https://blog.csdn.net/qq_35349982/article/details/132165581 htt
阅读全文
posted @ 2024-02-26 14:34 就学45分钟
阅读(1893)
评论(1)
推荐(1)
2023年11月16日
Git LFS 安装及使用
摘要: 一、安装(Linux): curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash sudo apt-get install git-lfs 其它操作系统上的安装,见官方
阅读全文
posted @ 2023-11-16 16:40 就学45分钟
阅读(6904)
评论(0)
推荐(0)
2023年10月7日
免费API接口
摘要: 获取本机IP的api: https://ip.seeip.org/geoip https://ip.nf/me.json http://ip-api.com/json 毒鸡汤API: https://api.lkblog.net/ws/api.php/ 免费的API库: https://api.uo
阅读全文
posted @ 2023-10-07 16:18 就学45分钟
阅读(469)
评论(0)
推荐(0)
2023年7月19日
ubuntu20.04安装Kubernetes(k8s 1.27.4)
摘要: 官方文档:https://kubernetes.io/zh-cn/docs/home/ 参考:https://www.cnblogs.com/wwph/p/14203626.html https://blog.csdn.net/wanghui2087/article/details/12932935
阅读全文
posted @ 2023-07-19 16:39 就学45分钟
阅读(3015)
评论(0)
推荐(2)
2023年7月7日
解决django.db.utils.OperationalError: (1213, 'Deadlock found when trying to get lock; try restarting transaction') 死锁问题
摘要: 原因:因为设置了`SESSION_SAVE_EVERY_REQUEST=Ture`,导致每个接口没有修改的状态下也更改session的过期时间。 1. 查看代码发现SessionMiddleware源码,遇到UpdateError异常直接抛出。 ```python try: request.sess
阅读全文
posted @ 2023-07-07 16:43 就学45分钟
阅读(443)
评论(0)
推荐(0)
2023年5月30日
使用python3 Django 根据用户角色来校验权限装饰器
摘要: 1. 定义用户角色 在Django中,通常使用User模型来表示用户,可以通过扩展User模型来增加角色属性。例如,可以定义一个Profile模型扩展User模型,并在Profile模型中增加一个roles字段,用于保存用户的角色信息。 ```python from django.contrib.a
阅读全文
posted @ 2023-05-30 15:32 就学45分钟
阅读(176)
评论(0)
推荐(0)
2022年12月8日
Docker中使用systemctl命令时报Too many open files错误
摘要: 分析: 可能是 inotify 数量限制了,修改后服务可以正常启动 解决方法: vim /etc/sysctl.conf fs.inotify.max_user_instances=512 fs.inotify.max_user_watches=262144 或 cat >> /etc/sysctl
阅读全文
posted @ 2022-12-08 15:45 就学45分钟
阅读(400)
评论(0)
推荐(0)
2022年11月16日
Linux centos 在线|离线安装依赖
摘要: 离线安装 yum install --downloadonly --downloaddir=/home/files zlib-devel bzip2-devel openssl-devel ncurses-devel epel-release gcc gcc-c++ xz-devel readlin
阅读全文
posted @ 2022-11-16 14:15 就学45分钟
阅读(1713)
评论(0)
推荐(0)
2022年10月25日
python3 Elasticsearch8.2返回值数量超过10000条解决方案
摘要: 今天测试写的ES查询接口发现total值最大为10000,找了好久。之前使用Elasticsearch 6.4就没有这个问题 原来从 Elasticsearch 7.0之后,为了提高搜索的性能,在 hits 字段中返回的文档数有时不是最精确的数值。Elasticsearch 限制了最多的数值为100
阅读全文
posted @ 2022-10-25 17:31 就学45分钟
阅读(1064)
评论(0)
推荐(0)
2022年6月10日
Docker制作支持中文的Centos7镜像
摘要: Dockerfile: FROM centos:centos7 # Install tools RUN yum update -y && \ yum reinstall -y glibc-common && \ yum install -y telnet net-tools && \ yum cle
阅读全文
posted @ 2022-06-10 14:08 就学45分钟
阅读(382)
评论(0)
推荐(0)
1
2
3
4
5
···
17
下一页
公告