0

I have a data.dump file for mysql and am trying to use manage.py loaddatato fill my db with this data file, but getting this error:

CommandError: Problem installing fixture '˜/Downloads/data': dump is not a known serialization format.

Apparently this is not a known format for Django loaddata. The question is how I can convert a .dump to .json, so I can use it with loaddata command?

1 Answer 1

1

If you crated your data.dump via MySQL there is, AFAIK, no way to load it via manage.py loaddata.

You can use this command to import so-called "fixtures" created with manage.py dumpdata

You will have to import your MySQL data dump directly into your new MySQL database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.