python manage.py migrate 报错: (mysql.W002) MySQL Strict Mode is not set for database connection 'd...
解决办法:在settings.py文件中,为DATABASES选项添加OPTIONS属性:['init_command']="SETsql_mode='STRICT_TRANS_TABLES'"具体位置如下所示:DATABASES={'default':{'ENGINE':'django.db.backends.mysql','NAME':'dbname','USER':'username','P