コード例 #1
0
def create_app():

    this_app = Flask(__name__)
    this_app.app_name = "bt_text"

    with open(os.environ.get('BTT_CONFIG'), 'r') as f:
        this_app.json_config = json.load(f)

    return this_app
コード例 #2
0
ファイル: __init__.py プロジェクト: btreecat/bt_text
def create_app():

    this_app = Flask(__name__)
    this_app.app_name = "bt_text"

    with open(os.environ.get('BTT_CONFIG'), 'r') as f:
        this_app.json_config = json.load(f)

    return this_app
コード例 #3
0
ファイル: __init__.py プロジェクト: kevhill/bt-text
def create_app():

    this_app = Flask(__name__)
    this_app.app_name = "bt_text"

    return this_app