django报错:django.db.utils.ProgrammingError: (1146, “Table ‘xxx‘ doesn‘t exist“)

淡淡的烟草味﹌ 2022-11-16 04:58 320阅读 0赞

问题描述

交接django项目后,启动项目时报错:

  1. django.db.utils.ProgrammingError: (1146, "Table 'app_perf.django_apscheduler_djangojob' doesn't exist")

原因:

项目配置文件 settings.py 中数据库的配置是指向本地的,但我本地还没有数据库配置,所以报错找不到对应的库

解决方案:

  • 执行sql迁移命令

    python manage.py migrate

发表评论

表情:
评论列表 (有 0 条评论,320人围观)

还没有评论,来说两句吧...

相关阅读