Django Autoload Data

Often times, when developing a Django app, it is convenient to auto-load data already entered. Here is how you can go about resetting your database with the auto-loaded data.

Save data#

./manage.py dumpdata [app] > [app]/initial_data.json

Restore data#

./manage.py loaddata [app]/initial_data.json

Django