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  没有把程序添加进里面

添加即可

上一篇:5个你可能会忽略的有用命令行工具


下一篇:ORM以及Django使用ORM创建表