Django在根據models生成數據庫表時報 __init__() missing 1 required positional argument: 'on_delete'...

code: #encoding=utf-8 from django.db import models # Create your models here. class BookInfo(models.Model): #創建書本信息類,繼承models.Model booktitle=models.CharField(max_length=20) bookdata=models.DateField(
相關文章
相關標籤/搜索