在执行 :python manage.py migrate 时候报错
报错提示:_AttributeError: 'tuple' object has no attribute 'startswith'_
报错原因:在db_table后面使用了逗号
解决方式:
1.删除migrations下生成的文件
2.重新执行生成数据模型和数据迁移操作
参考地址:https://it.cha138.com/wen3/show-6722860.html
Django数据迁移报错AttributeError: ‘tuple‘ object has no attribute ‘startswith
于 2023-07-17 15:02:52 首次发布