摘要: 当执行 python manage.py makemigrations 出现错误:TypeError: init() missing 1 required positional argument: ‘on_delete’。 解决方案: 定义外键的时候需要加上 on_delete=;即:contrac 阅读全文
posted @ 2020-08-15 21:57 JohnYang819 阅读(861) 评论(0) 推荐(0) 编辑