Every single time I run my python script, it reloads and thus runs the contents of the script twice.
This is a Flask application, and I have Debug=True, but I was under the impression it would only restart the server if I re-saved a file (which I'm not doing). Is it possible to change this behavior? As soon as I remove the Debug=True setting, it stops, but ideally I'd like to be able to have it on for the time being.
My basic run.py file:
from flask import Flask
app = Flask(__name__)
app.config.update(
# DEBUG = True
)
if (__name__):
app.run()