app/__init__.py
def create_app(config_name):
    """
    Initializing our app

    'instance_relative_config=True' allows us to connect to
    the instance folder when the app is created
    """

    app = Flask(__name__)

    # Setting up Configurations
    app.config.from_object(config_options[config_name])
    # app.config.from_pyfile('config.py')

    # Registering the blueprint
    from .main import main as main_blueprint
    app.register_blueprint(main_blueprint)

    # Setting up the request config
    from .request import configure_request
    configure_request(app)

    # Initializing Flask Extension
    # bootstrap = Bootstrap(app)

    # TODO: Will add the view
    # from app import views

    return app

    Initializing our app

    'instance_relative_config=True' allows us to connect to
    the instance folder when the app is created
    
Initializing our app
'instance_relative_config=True' allows us to connect to
the instance folder when the app is created
Initializing our app ' instance_relative_config = True ' allows us to connect to the instance folder when the app is created
def create_app(config_name):
    app = Flask(__name__)
    app.config.from_object(config_options[config_name])
    from .main import main as main_blueprint
    app.register_blueprint(main_blueprint)
    from .request import configure_request
    configure_request(app)
    return app
def create_app ( config_name ) : app = Flask ( __name__ ) app . config . from_object ( config_options [ config_name ] ) from . main import main as main_blueprint app . register_blueprint ( main_blueprint ) from . request import configure_request configure_request ( app ) return app
Initializing our app
'instance_relative_config=True' allows us to connect to
the instance folder when the app is created
Initializing our app ' instance_relative_config = True ' allows us to connect to the instance folder when the app is created
"""
    Initializing our app

    'instance_relative_config=True' allows us to connect to
    the instance folder when the app is created
    """ # Setting up Configurations # app.config.from_pyfile('config.py') # Registering the blueprint # Setting up the request config # Initializing Flask Extension # bootstrap = Bootstrap(app) # TODO: Will add the view # from app import views
config_name