![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django
yuenblue
这个作者很懒,什么都没留下…
展开
-
django Form,BoundField, ModelForm Field与Form Field类型映射变换 源码分析
django Form,BoundField, ModelForm Field与Form Field类型映射变换 源码分析原创 2023-03-01 16:11:58 · 132 阅读 · 0 评论 -
django middleware 中间件原理概念,源码解读分析
django middleware 中间件原理概念,源码解读分析原创 2023-02-19 02:00:28 · 229 阅读 · 0 评论 -
vscode debug django,at changed reloading popup the message “python SystemExit 3“
vscode debug django,at changed reloading popup the message "python SystemExit 3"原创 2022-04-13 04:33:03 · 861 阅读 · 0 评论 -
ValueError: The database backend does not accept 0 as a value for AutoField
comment=models.ForeignKey(‘self’, on_delete=models.CASCADE,default=0)修改default=None。删除最新migrations记录,重新makemigrations。参考https://blog.csdn.net/weixin_33859504/article/details/94456759原创 2022-03-02 03:49:18 · 1177 阅读 · 0 评论 -
You are trying to add a non-nullable field
You are trying to add a non-nullable fieldYou are trying to add a non-nullable field 'cat' to archive without a default; we can't do that (the database needs something to populate existing rows).Please select a fix: 1) Provide a one-off default now (wil原创 2022-03-02 03:19:53 · 1294 阅读 · 0 评论