Move Django database between servers

Save the database on the old server.

(oldenv)[email protected]:/opt/oldenv/django_project$ sudo python manage.py dumpdata blog > blog.json

Load the data on the new server. Make sure the models for both blogs are identical.

(env)[email protected]:/opt/env/django_project$ sudo python manage.py loaddata blog.json