How would I go about refreshing or re-rendering a page?
So I want to have a separate function like so:
changed_var = "bb"
def Check():
changed_var = "xx"
app = Flask(__name__)
@app.route("/")
def server_1():
render_template_string('index.html', changed_var="bb")
app.run()
so the changed_var is changing every second or so, how would I keep calling server_1, so that it re renders and changed the changed_var? I have tried calling server_1 from Check() but have ran into errors. Essentially, I want to call flask and tell it to "re render" from a "normal" function.