#django
- Have Django create a seeds file automatically from the data that already exists in the table
python manage.py dumpdata app-name --output app-name/seeds.json --indent=2- Depending on if you need to change...command could be a one time thing. - Empty the database of all rows inside currently.
python manage.py flushand answer "yes" when prompted. - Load your data from the seeds file, back into the database.
python manage.py loaddata app_name/seeds.json - Create your superuser again, as you have been deleted too... Show more