django模型迁移时数据库未生成表解决方法

报错信息:

WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection ‘default‘
HINT: MySQL‘s Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See:
https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode

解决方法:

技术分享图片

 

16:12:25

文章来自:https://www.cnblogs.com/django-start/p/8193911.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3