摘要: TypeError: __init__() missing 1 required positional argument: 'on_delete' 解决办法 当执行 python manage.py runserver 出现错误: event = models.ForeignKey(Event) # 阅读全文
posted @ 2020-12-06 11:37 局长 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 报错信息 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.9.3. 原因 原因是 MySQLclient 目前只支持到 Python3.4,而我使用了更高版 阅读全文
posted @ 2020-12-06 11:28 局长 阅读(2388) 评论(0) 推荐(0) 编辑