1.object is not subscriptable
错误的原因就是把不具有下标操作的对象用成了对象[i],比如int对象变量[i]就会报错。仔细检查错误行。
2. __init__() missing 1 required positional argument: 'on_delete'
herobook=models.ForeignKey('BookInfo',on_delete=models.CASCADE,)
即在外键值的后面加上 on_delete=models.CASCADE
3.'provide the namespace argument to include() instead.' % len(arg)