Loading

摘要: 官方文档 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分钟 阅读(560) 评论(1) 推荐(1) 编辑
摘要: 一、安装(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分钟 阅读(2363) 评论(0) 推荐(0) 编辑
摘要: 获取本机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分钟 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 官方文档: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分钟 阅读(1262) 评论(0) 推荐(0) 编辑
摘要: 原因:因为设置了`SESSION_SAVE_EVERY_REQUEST=Ture`,导致每个接口没有修改的状态下也更改session的过期时间。 1. 查看代码发现SessionMiddleware源码,遇到UpdateError异常直接抛出。 ```python try: request.sess 阅读全文
posted @ 2023-07-07 16:43 就学45分钟 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1. 定义用户角色 在Django中,通常使用User模型来表示用户,可以通过扩展User模型来增加角色属性。例如,可以定义一个Profile模型扩展User模型,并在Profile模型中增加一个roles字段,用于保存用户的角色信息。 ```python from django.contrib.a 阅读全文
posted @ 2023-05-30 15:32 就学45分钟 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 分析: 可能是 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分钟 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 离线安装 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分钟 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: 今天测试写的ES查询接口发现total值最大为10000,找了好久。之前使用Elasticsearch 6.4就没有这个问题 原来从 Elasticsearch 7.0之后,为了提高搜索的性能,在 hits 字段中返回的文档数有时不是最精确的数值。Elasticsearch 限制了最多的数值为100 阅读全文
posted @ 2022-10-25 17:31 就学45分钟 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 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分钟 阅读(361) 评论(0) 推荐(0) 编辑