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 tolocalhost:8000
但那和我的 127 端口 8000 没有响应并显示那里什么都没有,没有错误或任何东西,就像我说的,如果我
python manage.py runserver
通过外壳它可以工作
最佳答案
如果您将 django 与 Dockerfile 一起使用,您将不会错过设置为 1 的 env var PYTHONUNBUFFERED。
关于python - 卡在使用 StatReloader 监视文件更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61863806/