def create_app(object_name, env="prod"):

    app = Flask(__name__)

    app.config.from_object(object_name)
    app.config['ENV'] = env

    # init the cache
    cache.init_app(app)

    # init SQLAlchemy
    db.init_app(app)

    login_manager.init_app(app)

    # register our blueprints
    from controllers.main import main
    from controllers.user import user
    app.register_blueprint(main)
    app.register_blueprint(user)

    return app
Arguments:
dataset/ETHPy150Open CarlEkerot/flask-orm/webapp/__init__.py/create_app