Python int too large to convert to C long
Posted 柚柚柚切克闹
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python int too large to convert to C long相关的知识,希望对你有一定的参考价值。
表字段类型问题
publishDate=models.DateField()
改为
publishDate=models.DateTimeField()
DateField是日期项,没法精确到时分秒。所以这里出现溢出错误。将 DateField改为 DateTimeField,重新初始化数据库以后问题就消失了
以上是关于Python int too large to convert to C long的主要内容,如果未能解决你的问题,请参考以下文章
[踩坑] Django "OverflowError: Python int too large to convert to C long" 错误
Gitlab CE Docker Image Too Large to Push
Android:Canvas: trying to draw too large
Nginx报错:client intended to send too large body
mongodb 建立索引提示异常:WiredTigerIndex::insert: key too large to index, failing 1483