diff --git a/app/__init__.py b/app/__init__.py index f51d7e9..b487475 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -13,6 +13,7 @@ from datetime import datetime import os import time import secrets +import tomllib def create_default_avatar(): if Avatars.count() == 0: @@ -48,6 +49,7 @@ def create_deleted_user(): def create_app(): app = Flask(__name__) + app.config.from_file('../config/pyrom_config.toml', load=tomllib.load, text=False) if os.getenv("PYROM_PROD") is None: app.static_folder = os.path.join(os.path.dirname(__file__), "../data/static") diff --git a/app/templates/base.html b/app/templates/base.html index 3fc98e8..dbc1742 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -4,9 +4,9 @@
{% if self.title() %} -