from flask import Flask
import os


def create_app(config_name):
    app = Flask(__name__)
    app.config.from_object(os.environ['APP_SETTINGS'])

    from .main import main as main_blueprint
    app.register_blueprint(main_blueprint)

    return app

from flask import Flask
import os


def create_app(config_name):
    app = Flask(__name__)
    app.config.from_object(os.environ['APP_SETTINGS'])

    from .main import main as main_blueprint
    app.register_blueprint(main_blueprint)

    return app
