()
return _app
load API modules and return the WSGI application
load API modules and return the WSGI application
load API modules and return the WSGI application
def get_app():
    """load API modules and return the WSGI application"""
    global get_app, _app, login_manager
    _app = Flask(__name__)
    _app.config.from_object(DefaultConfig())
    _app.secret_key = 'WTF is this!!'       # Should have this to work

    login_manager = LoginManager()
    login_manager.init_app(_app)

    import_all_modules(__file__, __name__)
    get_app = lambda: _app
    return _app
def get_app ( ) : global get_app , _app , login_manager _app = Flask ( __name__ ) _app . config . from_object ( DefaultConfig ( ) ) _app . secret_key = 'WTF is this!!' # Should have this to work login_manager = LoginManager ( ) login_manager . init_app ( _app ) import_all_modules ( __file__ , __name__ ) get_app = lambda : _app return _app