django数据迁移老问题一个

ContentType或者auth.Permission老是报有重复的键值的时候,试试:

python manage.py flush

然后进入shell

python manage.py shell

from django.contrib.contenttypes.models import ContentType
ContentType.objects.all().delete()

python manage.py loaddata db.json

For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"