Probably you were looking for Flask.before_first_request
decorator, as in:
@app.before_first_request
def _run_on_start(a_string):
print "doing something important with %s" % a_string
Probably you were looking for Flask.before_first_request
decorator, as in:
@app.before_first_request
def _run_on_start(a_string):
print "doing something important with %s" % a_string