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

posted @ 2016-01-04 16:13  django_start  阅读(2815)  评论(0编辑  收藏  举报