Django部署在ubuntu服务器上,不能是“makemigrations”

2024-10-01 13:39:41 发布

您现在位置:Python中文网/ 问答频道 /正文

在本地测试django时,我还可以,但在ubuntu服务器上使用pythonmanage.py makemigrations时,出现了一个错误

django.db.utils.ProgrammingError: (1146, "Table 'NewHuBu.topic_sort_model' doesn't exist")

Error 1Error 2


Tags: djangopy服务器dbtopicubuntu错误table
2条回答

makemigration命令有一个/

去掉这个斜杠,在你的例子中写:python manage.py makemigrations topic。会有用的

我可以在您的命令中看到/

试试看

python manage.py makemigrations <app name not ending with slash>

为了你的案子

python manage.py makemigrations topic

相关问题 更多 >