I noticed that changes in global variables are not reflected by my flask app. E.g. here a minimal app:
import flask
message = 'Hello World'
app = flask.Flask(import_name=__name__)
@app.route('/')
def print_message():
return message
app.run()
message = 'Hello New World'
This results in 'Hello World' as return value even I set the variable "message" finally to 'Hello New World'.
Is it possible to reset the app or maybe more elegant, to reset a variable that is used by the app?
THX Lars