摘要: Django4中的缓存 详细文档参考:https://www.cnblogs.com/Neeo/articles/17589834.html Django支持的缓存有好几种: 三方的Redis(推荐),Memcached(不推荐) 缓存到本地文件 缓存到本地数据库 缓存到内存里 虚拟缓存 缓存的粒度 阅读全文
posted @ 2024-09-20 16:26 Sherwin_szw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Django4中的日志管理 参考:Django配置日志:https://www.cnblogs.com/Neeo/articles/17588553.html python内置模块logging模块:https://www.cnblogs.com/Neeo/articles/10951734.htm 阅读全文
posted @ 2024-09-20 15:54 Sherwin_szw 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.7 ModelForm 使用Form 创建Form类 + 定义字段 class LoginForm(forms.Form): user = forms.CharField(label="用户名", widget=forms.TextInput) pwd = forms.CharField(lab 阅读全文
posted @ 2024-09-20 15:53 Sherwin_szw 阅读(7) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.