校长演讲,大主宰猪猪岛,咸阳房产
django.core.exceptions.improperlyconfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
去到\python\lib\site-packages\django\db\backends\mysql\base.py"
把里面的注释掉
# if version < (1, 3, 13): # raise improperlyconfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % database.__version__)
attributeerror: 'str' object has no attribute 'decode'
去到python\lib\site-packages\django\db\backends\mysql\operations.py
再原基础上加上query = query.encode('utf8')
改了后效果
if query is not none: query = query.encode('utf8') query = query.decode(errors='replace') return query
valueerror: the field admin.logentry.user was declared with a lazy reference to 'api.userinfo', but app 'api' isn't installed.
找到自己的python3.x,进入site-packages/django/contrib/admin/migrations文件目录下,除了__init__.py文件,其他的全部删除。(注意,切勿把__init__.py文件删了,也不要把contrib/contenttypes这个文件夹下的migrations删了,不然会导致migrate功能失效,就只能把django卸了重下)。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Python 实现将numpy中的nan和inf,nan替换成对应的均值
python爬虫把url链接编码成gbk2312格式过程解析
网友评论