1. 数据导出
python manage.py dumpdata [appname] > appname_data.json
2. 建新表
python manage.py migrate
python manage.py shell
>>> from django.contrib.contenttypes.models import ContentType
>>> ContentType.objects.all().delete()
>>> quit()
3. 导入数据
python manage.py loaddata data.json