What are the rules for automatically restarting Django when changing one of the code files?

I noticed that it ./manage.py runserverautomatically reboots when my file changes views.py. How to deal with the base code that makes it work?

+4
source share
1 answer

Automatically restarting the Django server:

Django tries to timestamp the polling file changes every second . If he sees, there are some changes. it restarts the server.

Thus, the Django server checks every second the timestamps of changes for each file. If he sees changes in any of them, this will lead to a restart of the server.

, .

: Linux pyinotify, .

django docs,

Linux pyinotify, ( ). , , .

, :

Django.

- Django. , .

, Python , Django . - , .

+4

All Articles