1

I give up. Migrations are effed up. encountering error after error. I'm so sick and tired of this right now.

I just want to move on. So I guess it better to wipe all data because of one table is messed up.

Is it possible to backup ONE table, not a database, before wiping? And then after import this back to that table?

I use postgres db.

1
  • 1
    dumpdata lets you dump your data to json and specify which apps and which models. Commented Feb 9, 2020 at 21:27

1 Answer 1

3

you can use Django dump data for a single model

it will export json file from app or single model then you can get it back by load data

Django dump data doc

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.