这里写自定义目录标题
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
这个问题很多人说降低python版本,但我们一般不太想这样做:
在项目路径下__init__.py修改一下
import pymysql
pymysql.version_info = (1, 4, 13, "final", 0)
pymysql.install_as_MySQLdb()
还不行的话看一下你models有没有错误,是不是复制了别人的代码,数据库里又没有对应的表