Django在执行python manage.py makemigr时,报 __init__() missing 1 required positional argument: 'on_delete'
Django在根据models生成数据库表时报 __init__() missing 1 required positional argument: 'on_delete'model.py中:class BlogArticles(models.Model): title = models.CharField(max_length=300) author = models....
原创
2018-11-15 15:44:51 ·
285 阅读 ·
0 评论