def create_app(config_object='code_runner.settings'):
    'Creates and returns flask app instance as well as register all the extensions and blueprints'
    app = Flask(__name__)
    register_environment()
    app.config.from_object(config_object)
    register_blueprints(app=app)
    register_views(app=app)
    register_extensions(app=app)
    configure_logger(app=app)
    return app
Creates and returns flask app instance as well as register all the extensions and blueprints
def create_app(config_object='code_runner.settings'):
    
    app = Flask(__name__)
    register_environment()
    app.config.from_object(config_object)
    register_blueprints(app=app)
    register_views(app=app)
    register_extensions(app=app)
    configure_logger(app=app)
    return app