def create_app(config_name):
app = Flask(__name__)<EOL>app.config.from_object(CONFIG[config_name])<EOL>BOOTSTRAP.init_app(app)<EOL>from flask_seguro.controllers.main import main as main_blueprint<EOL>app.register_blueprint(main_blueprint)<EOL>return app<EOL>
Factory Function