diff --git a/steering/settings.py b/steering/settings.py index 33c66cb547568efde7501f03ef79bdb861a19f5f..8d0aa1f34e387072d1a908bc03977238ff266283 100644 --- a/steering/settings.py +++ b/steering/settings.py @@ -1,5 +1,3 @@ -# Django settings for pv project. - import os from pathlib import Path @@ -8,7 +6,6 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType import ldap -# Paths BASE_DIR = Path(__file__).resolve(strict=True).parent.parent LOCALE_PATHS = (BASE_DIR / "locale",) @@ -27,14 +24,12 @@ SITE_ID = 1 # Must be set if DEBUG is False ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default="127.0.0.1,localhost").split(",") -# Whitelist origins that access the API CORS_ALLOWED_ORIGINS = ["http://localhost:8080", "http://localhost:8040"] CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_HEADERS = list(default_headers) + [ "content-disposition", ] -# ENGINE is 'sqlite3' by default and NAME is 'db.sqlite3' by default DATABASES = { "default": { "ENGINE": f"django.db.backends.{os.getenv('DATABASE_ENGINE', default='sqlite3')}", @@ -46,7 +41,6 @@ DATABASES = { }, } -# LOCALIZATION TIME_ZONE = os.getenv("TZ", default="Europe/Vienna") LANGUAGE_CODE = "de" USE_L10N = True