会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tslam
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
28
29
30
31
32
33
34
35
36
···
50
下一页
2022年8月31日
django.core.exceptions.ImproperlyConfigured: Cannot import xxx
摘要: 转载于 https://blog.csdn.net/leedcandd/article/details/119920350
阅读全文
posted @ 2022-08-31 10:51 tslam
阅读(77)
评论(0)
推荐(0)
2022年8月29日
报错 AttributeError: 'NoneType' object has no attribute 'is_relation'
摘要: 转载自: https://blog.csdn.net/qq_40202812/article/details/83410023 1 2
阅读全文
posted @ 2022-08-29 11:21 tslam
阅读(59)
评论(0)
推荐(0)
2022年8月26日
python 比较两个list
摘要: 参考1 https://blog.csdn.net/weixin_44151034/article/details/124286429 参考 2 参考代码 def is_diff_ele(list1, list2): """ 判断两个列表元素是否一致(不是两个列表是否相同) True: 一致; Fa
阅读全文
posted @ 2022-08-26 18:17 tslam
阅读(259)
评论(0)
推荐(0)
django 批量更新 批量新增 睡几秒 sleep 几秒
摘要: 0-1 睡几秒? 情况1: 批量插入时, 每次插入100条, 睡time.sleep(1); 情况2: 单条单条插入时, 每插入一条睡0.05秒; 其他: 批量requests请求时, 单次请求完了睡1sec, 否则, 不是你的IP被封了,就是给人家服务器造成冲击. 为什么呢? 因为mysql同一时
阅读全文
posted @ 2022-08-26 09:55 tslam
阅读(197)
评论(0)
推荐(0)
2022年8月24日
django 事务
摘要: 官网地址: https://docs.djangoproject.com/zh-hans/3.1/topics/db/transactions/#controlling-transactions-explicitly 图1 根据上下文管理器, with 结束后会 调用 _ _exit_ _, 进入w
阅读全文
posted @ 2022-08-24 23:45 tslam
阅读(38)
评论(0)
推荐(0)
关于注释
摘要: 注释越多越好 但是: 不要写解释这句代码啥意思的具体备注 而是: 要写你要做什么写成备注
阅读全文
posted @ 2022-08-24 23:24 tslam
阅读(18)
评论(0)
推荐(0)
python locals() 内置函数
摘要: 参考链接: https://www.runoob.com/python/python-func-locals.html 以字典类型返回当前位置的全部局部变量.
阅读全文
posted @ 2022-08-24 10:57 tslam
阅读(16)
评论(0)
推荐(0)
utils 文件夹 放共用的文件
摘要: 如题
阅读全文
posted @ 2022-08-24 09:48 tslam
阅读(22)
评论(0)
推荐(0)
2022年8月23日
python 标准库
摘要: 官方文档: https://docs.python.org/zh-cn/3/library/
阅读全文
posted @ 2022-08-23 23:22 tslam
阅读(12)
评论(0)
推荐(0)
2022年8月22日
handler 含义: 处理程序、处理函数
摘要: 如题
阅读全文
posted @ 2022-08-22 15:02 tslam
阅读(19)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
50
下一页
公告