cmd中使用python3 manage.py migrate命令,報warn,不少人都遇到過python
解決辦法:sql
settings.py文件夾加入DATABASES['OPTIONS']['init_command'] = "SET sql_mode='STRICT_TRANS_TABLES'"
3d
再次migrate,沒有警告了,搞定,很清爽。code
------------------------------------------------------------------------------------------------------------------blog
更多細節,交流QQ羣:823625453cmd