Any changes I make to my code aren't doing anything. I am using three things html, flask and python. Any code change I make to my python or html code is not getting implemented on the browser when I am trying to run it.IT is only running older version of the code. How can I rectify this error of vscode?
Asked
Active
Viewed 94 times
0
-
Did you restart your flask instance? – matszwecja Jul 20 '22 at 07:40
-
How can I restart it ? – Ritika Gupta Jul 20 '22 at 07:43
-
Ctrl+C in the terminal that is running it and then start it again. – matszwecja Jul 20 '22 at 07:45
-
I do this every time I make any changes. But still not showing any difference. – Ritika Gupta Jul 20 '22 at 07:51
3 Answers
0
Make sure you're refreshing the page if you're opening a HTML file. If you're accessing the python server make sure to restart it every time you make changes to the code. The way to do it is ctrl+c in the terminal and running the command again. There are ways to make this happen automatically, refer here for more information

Blackk
- 21
- 7
-
I do this every time I make any changes. But still not showing any difference. – Ritika Gupta Jul 20 '22 at 07:51
-
-
Yes. After making changes to my code I always do ctrl + s after that. – Ritika Gupta Jul 20 '22 at 07:56
0
Did you start your flask server in debug mode?
from Python
app.run(debug=True)
or from terminal
$ export FLASK_DEBUG=1
$ flask run

lutrarutra
- 180
- 1
- 10