django.db.utils.OperationalError: (1050, "Table 'article_category' already exists")

(转自:https://blog.csdn.net/huanhuanq1209/article/details/77884014)

执行manage.py makemigrations 未提示错误信息,

但manage.py migrate时进行同步数据库时出现问题;django.db.utils.OperationalError: (1050, "Table 'article_category' already exists") 错误信息

这时执行"python manage.py migrate myapp --fake"即可解决问题

转载于:https://www.cnblogs.com/linyuhong/p/9805208.html

你可能感兴趣的:(django.db.utils.OperationalError: (1050, "Table 'article_category' already exists"))