[Fixed]-Stuck in Watching for file changes with StatReloader

5👍

You may be missing the port binding, try to run python manage.py runserver 0.0.0.0:8000 to be sure that the app is running on localhost:8000

9👍

If you use django with Dockerfile, you won’t miss that env var PYTHONUNBUFFERED set by 1.

1👍

Using Git Bash run:

$ python manage.py runserver 127.0.0.1:8000

In my case, it showed the same behavior (‘Stuck in watching…’).
However, after that I opened a browser and I typed:

127.0.01:8000. The Django webpage works properly.

-1👍

Probably autoreload does not work well in your environment, if you don’t need it – better turn it off by starting django with –noreload arg.

👤TPRLab

Leave a comment