当我运行 makemigrations 或 createsuperuser 等时,django 命令会卡住

问题描述 投票:0回答:1

我有一个 Django 应用程序,当我运行时

python manage.py makemigrations
终端卡住了,没有显示任何输出,甚至 ctrl + C 也不起作用

并非所有命令都会出现这种情况 createsuperuser、flush、makemigrations 等命令不起作用 但是像generateschema这样的命令可以工作

我创建了另一个 django 项目并尝试运行这些命令,它们工作了。

此问题仅在该项目中发生,而且发生得很突然。

django django-rest-framework django-forms
1个回答
0
投票

您可能错误地更改了manage.py文件或更新了一些库。如果您有requirements.txt,请安装requirements.txt 中的所有内容,或者如果您跟踪所有库的先前版本,请回滚到这些版本,这可能会起作用。谢谢你。

© www.soinside.com 2019 - 2024. All rights reserved.