Apologies if this is not a valid question.
I can run my flask app by taking in an optional argument on my command line as follows:
python main.py reset
For my case, the reset
argument clears all rows in my sqlite database attached to my web app. Meaning I can start the app with a fresh database slate.
However, during development with debug=True
, as the app runs and i save my files, it seems that the above CL command gets called along with the optional argument, resulting in my database constantly being cleared.
The obvious workaround is to rerun the app without the optional argument after I cleared my database so that the debugging mode will not call the optional argument.
I was wondering if this considered to be a "bug", or its simply how the debugging feature works and there's nothing that can be done to change this?