Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

prevent flask reload on change

I am trying to code in pycharm in debug mode and as I am trying to work out a problem I am typing in the file I am working in. I am referencing current code in the debug console so I need that to stay. Unfortunately once I start typing code, flask reloads and I lose my debug console.
Is there any way to prevent flask from reloading?
If I want it to reload I will restart the app manually.

like image 256
user1601716 Avatar asked Jan 29 '19 15:01

user1601716


1 Answers

Check if you have app.run(use_reloader=True). Even if not, put this param and make it False.

like image 146
spiralarchitect Avatar answered Sep 23 '22 14:09

spiralarchitect