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有没有错误,是不是复制了别人的代码,数据库里又没有对应的表

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐