[Django]-Django move data from local to production?

7👍

You can use dumpdata/loaddata management commands:

On local machine:

python manage.py dumpdata > mydata.json

On production:

python manage.py loaddata mydata.json

Leave a comment