摘要: 当执行 python manage.py makemigrations 出现错误:TypeError: init() missing 1 required positional argument: ‘on_delete’ 解决方案: 定义外键的时候需要加上 on_delete=;即:contract 阅读全文
posted @ 2021-12-24 10:28 寂寞圣贤 阅读(74) 评论(0) 推荐(0)