Django Dumpdata Unable To Serialize Database

Django Dumpdata Unable To Serialize Database Rating: 8,2/10 3311votes

Hi, We are trying to migrate between databases and we are running into a problem while trying to use dumpdata. We've tried:./manage.py dumpdata --natural --indent 2 >dump.json and:./manage.py dumpdata --natural --format xml --indent 2 >dump.xml Both return the following error: Error: Unable to serialize database: 'ascii' codec can't encode character u' xe9' in position 18: ordinal not in range(128) Is there a way to dump and load non-ASCII data? -- Eric Chamberlain, Founder RF.com - -- You received this message because you are subscribed to the Google Groups 'Django users' group.

Confusing error when ForeignKey lookup fails while serializing. Free Turbo Grafx 16 Emulator Iso. Unable to serialize database. IntegrityError: Could not load myapp.UserProfile(pk=18): column user_id is not unique. You could go back and only list the apps you want to transfer the data of after the dumpdata command, but this is painful and you may not know them all if you're using lots of third party apps (South, Django-CMS, etc).

Django Dumpdata Unable To Serialize Database