django.db.utils.InternalError: (1050, "Table 'tb_content' already exists")

在goods应用里面写了tb_content数据表的模型类(不该写在这里的),进行了数据迁移,还导入了数据。

在contents应用里也写了tb_content数据表的模型类(应该写在这里的),

解决办吧:

  1. 代码上,删除goods里面的。
  2. python manage.py migrate contents --fake   (假装迁移了,实际上是修改 django_migrations数据表)
原文地址:https://www.cnblogs.com/whigym/p/10066759.html