疑难杂症
文章平均质量分 74
解决日常问题
小黄鸭会飞呀
这个作者很懒,什么都没留下…
展开
-
日常错误集
ABCDEERRORS:myApp.Students.scontend: (fields.E120) CharFields must define a ‘max_length’ attribute.CharFields类型必须添加max_length属性Exception: HTTP 599: SSL certificate problem: unable to get local issuer cer在self.crawl()最后加上validate_cert=False参数原创 2021-07-23 09:02:12 · 1141 阅读 · 0 评论 -
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
可能出现Django2.2和pymysql版本不兼容问题,如下: raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解决方案将instal原创 2020-05-08 23:11:12 · 70 阅读 · 0 评论 -
AttributeError: 'str' object has no attribute 'decode'
可能出现pymysql出现不兼容问题,如下: File "C:\Users\Administrator\zufang\venv\lib\site-packages\django\db\backends\mysql\operations.py", line 146, in last_executed_query query = query.decode(errors='replace')AttributeError: 'str' object has no attribute 'decode'原创 2020-05-08 23:00:20 · 215 阅读 · 0 评论