the docs suggest using factory function.
def create_app(): app = Flask(__name__) return app()
so I don\'t have access to my app when