“如何修复django dumpdata的错误”_django_curs_139705…”;

“如何修复django dumpdata的错误”_django_curs_139705…”;,django,database,psql,Django,Database,Psql,尝试为我的项目转储数据 python3 manage.py dumpdata > dump_12_05_2020.json 获取错误。我怎样才能解决这个问题 CommandError: Unable to serialize database: cursor "_django_curs_139705045542656_66" does not exist 我在尝试数据转储时弹出了相同的错误消息 值得一提的是:在我的情况下,我的数据库中有一些东西搞砸了。有些postgres表没有链接到d

尝试为我的项目转储数据

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运行正常