My editor is vs code, I am running flask with the below config
{
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "application.py",
"FLASK_ENV": "development",
"DATABASE_URL": "postgres://localhost/cs50w_project1_development",
"FLASK_DEBUG": 1,
"SECRET_KEY": "abcefefe"
},
"args": [
"run",
"--no-debugger",
"--no-reload"
],
"jinja": true
},
It seems all good except flask won't hot reload when I am changing the code. E.G., add an action.
I have to manually reload the flask by clicking the restart button.
Is there any issue with my current config?
Remove the --no-reload
in the launch.json
. It's a very old thread but posting the answer here for future visitors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With