django (1050, "Table 'django_content_type' already exists")

django项目在执行python manage.py migrate 进行表迁移时报错

错误信息:django.db.utils.InternalError: (1050, "Table 'django_content_type' already exists")

解决办法:

执行python manage.py migrate --fake

再次执行python manage.py migrate

你可能感兴趣的:(django (1050, "Table 'django_content_type' already exists"))