会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
10132714
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
17
下一页
2025年2月13日
tkinter参考网址
摘要: https://blog.csdn.net/qq_48979387/article/details/125706562https://blog.csdn.net/qq_48979387/article/details/125768994?spm=1001.2014.3001.5502
阅读全文
posted @ 2025-02-13 15:38 10132714
阅读(13)
评论(0)
推荐(0)
2024年10月17日
gunicorn部署django
摘要: 转载自:https://blog.csdn.net/qq_15028721/article/details/129298393 gunicorn_config.py文件: 启动命令 guincorn 你的项目.wsgi -c gunicorn_config.py # -*- coding:utf-8
阅读全文
posted @ 2024-10-17 13:32 10132714
阅读(315)
评论(0)
推荐(0)
2024年10月12日
python线程池使用
摘要: from concurrent.futures import ThreadPoolExecutor thread_pool = ThreadPoolExecutor(max_workers=10) # 最大worker数量为10,当线程数超过10之后,后面填进去的都会等待,直到线程池有空闲 def
阅读全文
posted @ 2024-10-12 17:40 10132714
阅读(23)
评论(0)
推荐(0)
celery参考
摘要: https://www.cnblogs.com/songcheng/p/7754403.html celery启动要在项目根目录径下执行命令, 1. cd LittleBird # 进入你的项目 2. celery -A LittleBird worker --loglevel=info # 此处的
阅读全文
posted @ 2024-10-12 17:12 10132714
阅读(13)
评论(0)
推荐(0)
2024年10月9日
linux端口开放
摘要: 原博客:https://www.cnblogs.com/fjzhang/p/18332275 1、查询端口是否已开启,命令如下: firewall-cmd --zone=public --query-port=80/tcp #查看80/tcp端口 2、在Linux防火墙上开放端口,命令如下: fir
阅读全文
posted @ 2024-10-09 14:49 10132714
阅读(134)
评论(0)
推荐(0)
2024年9月18日
日志管理问题
摘要: https://blog.csdn.net/windowshht/article/details/140598979 https://blog.csdn.net/footless_bird/article/details/134502184 https://www.cnblogs.com/amgul
阅读全文
posted @ 2024-09-18 21:24 10132714
阅读(18)
评论(0)
推荐(0)
2024年8月22日
search_fields与filter_fields,参看数据库操作
摘要: search_fields是匹配传入参数关键字search的,并且将参数以逗号分隔成列表 fields是用来匹配需要过滤的字段的,对匹配到的传入的关键字进行匹配 查看django对于数据的操作,配置日志参数 django.db.backends debug等级 并且项目要在debug模式运行才行
阅读全文
posted @ 2024-08-22 20:17 10132714
阅读(68)
评论(0)
推荐(0)
2024年7月22日
django相关面试题
摘要: 1. auto_add与auto_add_now 作用于时间类型的字段,auto_add_now只在创建数据的时候生效,auto_now在修改数据的时候生效 create_time = models.DateTimeField(auto_now_add=True) update_time = mod
阅读全文
posted @ 2024-07-22 18:42 10132714
阅读(62)
评论(0)
推荐(0)
2024年7月8日
odoo学习5-模型字段知识
摘要: 参考:https://www.cnblogs.com/LittlePanger/p/12626406.html
阅读全文
posted @ 2024-07-08 17:33 10132714
阅读(20)
评论(0)
推荐(0)
2024年7月5日
odoo学习-4 权限
摘要: 1. 模型级别权限 使用分组的方式来控制,增删改查,在security中新建xml文件来配置用户组,然后给不同的用户设置不同的组即可 2. 记录级别的权限 在xml中写入过滤条件,可以过滤掉不符合条件的记录 3.4. 字段级别,视图级别,不常用,暂时不了解
阅读全文
posted @ 2024-07-05 10:33 10132714
阅读(16)
评论(0)
推荐(0)
2024年7月3日
odoo学习-3 图表
摘要: 1. 图表 1
阅读全文
posted @ 2024-07-03 17:49 10132714
阅读(18)
评论(0)
推荐(0)
2024年7月2日
odoo学习-2
摘要: 1. 新加自定义模块 odoo同级目录下新建my_addons文件夹加入自己的模块(注意:views中也要创建一个xml文件) 后面data里面要放views和security的路径 'data': [ 'views/epidemic_record_view.xml', 'security/ir.m
阅读全文
posted @ 2024-07-02 17:17 10132714
阅读(37)
评论(0)
推荐(0)
2024年7月1日
odoo学习-1
摘要: 1. 虚拟环境的使用 https://blog.csdn.net/u013379032/article/details/131556231 2. linux安装postgresql 到官网,然后选择自己的服务器配置,他会给你一段代码,执行即可 # Install the repository RPM
阅读全文
posted @ 2024-07-01 23:24 10132714
阅读(28)
评论(0)
推荐(0)
2024年3月12日
django中使用celery
摘要: b站视频地址:https://www.bilibili.com/video/BV1Di4y1d7AD/?spm_id_from=333.337.search-card.all.click&vd_source=2bb64c37f92f4879fab81cd58822718c 1. 目的:异步操作,用户
阅读全文
posted @ 2024-03-12 16:42 10132714
阅读(21)
评论(0)
推荐(0)
2022年7月16日
python拼接sql,防注入
摘要: sql注入一般都是会有一些特殊字符的,后端拿到这个参数,一定是字符串类型。那么在处理的时候就以这个为突破点:1. 判断数据类型,像是int,boolean,浮点型等,直接传入用户传来的参数,很容易出问题, 执行之前可以先判断数据类型是否正确,不正确直接报错,不再执行 a = '1 or 1=1' b
阅读全文
posted @ 2022-07-16 12:26 10132714
阅读(834)
评论(0)
推荐(0)
mysql的float条件查询不到结果,sql的一些其他问题
摘要: 记一下今天遇到的问题 1. float用=匹配不到结果 sql: select * from table1 where low=74.9 # 这个sql查不到结果,但是实际上数据库里面有,low是float类型 将low字段换成decimal类型,就可以查出来结果原因: float类型存在误差,不能
阅读全文
posted @ 2022-07-16 11:41 10132714
阅读(685)
评论(0)
推荐(0)
2022年6月29日
面试常问问题
该文被密码保护。
阅读全文
posted @ 2022-06-29 09:01 10132714
阅读(3)
评论(0)
推荐(0)
2022年6月17日
shell基础
摘要: 1. 执行shell的两种方式 1. 作为可执行程序 一定要写成 ./test.sh,而不是 test.sh,运行其它二进制的程序也一样,直接写 test.sh,linux 系统会去 PATH 里寻找有没有叫 test.sh 的。 而只有 /bin, /sbin, /usr/bin,/usr/sbi
阅读全文
posted @ 2022-06-17 11:08 10132714
阅读(34)
评论(0)
推荐(0)
2022年5月22日
创建一个属于我自己的flask项目
摘要: 1.
阅读全文
posted @ 2022-05-22 10:55 10132714
阅读(14)
评论(0)
推荐(0)
2022年5月16日
html头部默认代码
摘要: <!-- 管理网站统一的头部和尾部 --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div> 666 </div> </body> <
阅读全文
posted @ 2022-05-16 12:33 10132714
阅读(275)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
17
下一页
公告