【发布时间】:2020-05-12 16:30:06
【问题描述】:
为我的项目尝试转储数据
python3 manage.py dumpdata > dump_12_05_2020.json
得到错误。我该如何解决?
CommandError: Unable to serialize database: cursor "_django_curs_139705045542656_66" does not exist
【问题讨论】:
为我的项目尝试转储数据
python3 manage.py dumpdata > dump_12_05_2020.json
得到错误。我该如何解决?
CommandError: Unable to serialize database: cursor "_django_curs_139705045542656_66" does not exist
【问题讨论】:
我在尝试数据转储时弹出了相同的错误消息。
对于它的价值:就我而言,我的数据库中有一些东西搞砸了。一些 postgres 表未链接到 django 中的模型,以及 django 中的一些模型在 postgres 中没有表。当我删除未链接到模型的表和未链接到表的模型时,datadump 正常。
【讨论】: