django 数据库 ORM创建表单是出错

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

 

解决办法,  settings里面   INSTALLED_APPS  没有把程序添加进里面

添加即可

posted @ 2018-09-26 21:57  Niuli'blog  阅读(269)  评论(0编辑  收藏  举报