Is always neccessary to rerun app on local?

Hi,

I would like to ask you about the debug workflow in PyCharm.

Firstly, I'm really new in pycharm and python. I have created a flask hello world app and click on the run button in the topbar.

In the console, I got a link to localhost where the app is running.
In the browser I saw "Hello world page". Then I changed Hello world title on something else, and I refreshed the browser. But the change wasn'T reflected.

To be reflected, I have to stop the app instance and again run. Then I see the changes.

I would like to ask you, is it possible to reflect changes automatically? Or it's necessary to stop and run after every change.

Really thanks and sorry if the question is stupid:) I'm really new.
1 comment
Hi Petr,

you should use
app.run(debug=True)
to run Flask project in auto-reload mode.

For more information see – http://flask.pocoo.org/docs/quickstart/#debug-mode
0

Please sign in to leave a comment.