I have a bottle problem, the _initialize function runs twice. Application example:
@route("/index") def index(): return "bang" def _initialize(): print("bam") if __name__ == "__main__": _initialize() run(reloader=True, host="localhost", port = 8990)
Output:
bam bam Bottle v0.11.rc1 server starting up (using WSGIRefServer())... Listening on http:
Why is this happening and how can I make such a pre init in a bottle?
Darek
source share