python manage.py runserver keeps reloading stating file has changed

Viewed 2981

I've been working on a django project with no issues. I've pulled updated code from the remote repository and now if i do python manage.py runserver in cmd, i keep getting error

Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
D:\some_project\someapp\schemes\models.py changed, reloading.
Watching for file changes with StatReloader
Performing system checks...

then

Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
D:\some_project\someapp\schemes\views.py changed, reloading.
Watching for file changes with StatReloader
Performing system checks...

it keeps looping through all the files and all the apps that have in my django project. it works if i try python manage.py runserver --noreload however, i'm curious as to what lead to the issue in the first place.

1 Answers

You may be experiencing this issue due to your development environment. If you are using a Vagrant server or similar, the reloading of the files would be due to the Vagrant server refreshing the files from your local machine.

The --noreload flag is suitable for situations like this.

Related