How fix error for django dumpdata "_django_curs_139705..."

Try dumpdata for my projest

python3 manage.py dumpdata > dump_12_05_2020.json

Get error. How i can fix that?

CommandError: Unable to serialize database: cursor "_django_curs_139705045542656_66" does not exist

Upvotes: 8

Views: 2525

Answers (1)

MSDMMM
MSDMMM

Reputation: 61

I had the same error message pop up when trying to datadump.

For what it's worth: in my case, I had some things messed up in my database. Some postgres tables not linked to models in django, and some models in django that had no tables in postgres. When I removed the tables not linked to models and the models not linked to tables, datadump went fine.

Upvotes: 3

Related Questions