python - 卡在使用 StatReloader 监视文件更改

标签 python django git-bash

I made my project fine and when I run my server through a normal shell it works but I am trying to run my project through git bash. All the commands seem to work fine but when I do python manage.py runserver it gets stuck on Watching for file changes with StatReloader. Apparently after that I go to localhost:8000



但那和我的 127 端口 8000 没有响应并显示那里什么都没有,没有错误或任何东西,就像我说的,如果我 python manage.py runserver通过外壳它可以工作

最佳答案

如果您将 django 与 Dockerfile 一起使用,您将不会错过设置为 1 的 env var PYTHONUNBUFFERED。

关于python - 卡在使用 StatReloader 监视文件更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61863806/

相关文章:

python - python : why does random. 的新功能 choice() 单独时会正确生成,但当放在名称表达式中时它不会

django - 博托S3响应错误: 400 Bad Request

python - 在Django中使用Redis同步请求

git - 致命: bad numeric config value 'white' for 'color.status' : invalid unit

MySQL Git Bash winpty mysqldump stdout 不是 tty 并且 stdin 不是 tty

windows - 如何使用 bash 命令在 Windows 10 中创建和激活虚拟环境

python - 操作从 dict(tuple-float) 创建的 DataFrame

Python/正则表达式 : How to slice string by regex pattern while keeping the pattern in the matches as well?

python - 如何使用 pandas 将 '$ -' 从字符串转换为 float ?

python - Django:如何通过单击一行来更改页面?