From a2c8f469a78fc64e66e584221398c3bd9e205672 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 27 Oct 2024 17:54:57 +0100 Subject: [PATCH] refactor: format --- src/notfellchen/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/notfellchen/settings.py b/src/notfellchen/settings.py index 4d6a062..1940161 100644 --- a/src/notfellchen/settings.py +++ b/src/notfellchen/settings.py @@ -76,6 +76,7 @@ DB_NAME = config.get("database", "name", fallback="notfellchen.sqlite3") DB_USER = config.get("database", "user", fallback='') DB_PASSWORD = config.get("database", "password", fallback='') DB_HOST = config.get("database", "host", fallback='') + # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale')] @@ -92,7 +93,6 @@ GEOCODING_API_URL = config.get("geocoding", "api_url", fallback="https://nominat """ Tile Server """ MAP_TILE_SERVER = config.get("map", "tile_server", fallback="https://tiles.hyteck.de") - """ OxiTraffic""" OXITRAFFIC_ENABLED = config.get("tracking", "oxitraffic_enabled", fallback=False) OXITRAFFIC_BASE_URL = config.get("tracking", "oxitraffic_base_url", fallback="") @@ -187,6 +187,8 @@ MIDDLEWARE = [ ROOT_URLCONF = 'notfellchen.urls' +SETTINGS_PATH = os.path.dirname(os.path.dirname(__file__)) + TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates',