gpt4 book ai didi

python - Django:python manage.py migrate 什么都不做

转载 作者:太空狗 更新时间:2023-10-29 18:07:32 26 4
gpt4 key购买 nike

我刚开始学习 Django,当我尝试应用我的迁移时,第一个问题出现了。我启动服务器,输入

python manage.py migrate

什么也没有发生。没有错误,没有崩溃,只是没有响应。

Performing system checks...

System check identified no issues (0 silenced).

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

May 01, 2017 - 11:36:27
Django version 1.11, using settings 'website.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
python manage.py migrate

我的终端提要到此结束。我想也许看起来什么也没发生,但没有。更改未应用,我无法继续进行。对正在发生的事情有什么想法吗?

最佳答案

好吧,你说你先启动服务器,然后输入命令。这也是您共享的终端提要显示的内容。

如果您想使用 manage.py 运行管理命令,请不要运行服务器。

Ctrl+C 退出服务器,然后运行您的迁移命令,它将起作用。

关于python - Django:python manage.py migrate 什么都不做,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43718536/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com