出现这种问题一般是这三个情况 路由没有配置好 app没有注册 模块没有继承对 检查之后再次进行迁移文件:Python manage.py makemigrations 执行迁移:Python manage.py migrate