Django Autoload Data
Back to current version Restore this version

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