Search code examples
pythondjangowerkzeug

Django restarted (trigger file change) on every request when using runserver_plus


Django always detect file changes on every request on development mode. it was restarting even though i didn't make any change at all on the code.

for a simple view this is not causing a problem. the process of rendering one page done before restart triggered. but if i have more complex logic in view, django restarted before the process of rendering a page completed.

is any body know is this an expected behaviour? and why this is happened? how can i solve my problem? render a complex logic before django restarted.

Is there are a way to disable that false positive trigger of file change?

enter image description here


Solution

  • so for me it was because the werkzeug version i installed. Installing the latest werkzeug from their master branch has fixed the issue disscussed here