Coverage for app.py: 0%
5 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-27 22:07 +0000
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-27 22:07 +0000
1# This file serves as an entry point for the rock image. It is required by the PaaS app charmer.
2# The flask application must be defined in this file under the variable name `app`.
3# See - https://documentation.ubuntu.com/rockcraft/en/latest/reference/extensions/flask-framework/
4import os
5import logging
7# canonicalwebteam.flask-base requires SECRET_KEY to be set, this must be done before importing the app
8os.environ["SECRET_KEY"] = os.environ["FLASK_SECRET_KEY"]
10# disable talisker logger, as it is not used in this application and clutters logs
11logging.getLogger("talisker.context").disabled = True
13from webapp.app import app