From 9e8d43e210d404d3469e3d40f0190cb2e07eb2c7 Mon Sep 17 00:00:00 2001 From: WGAVermeer <90707235+WGAVermeer@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:25:33 +0100 Subject: [PATCH] updated .env insertation --- compose.yaml | 7 ------- src/website/settings.py | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/compose.yaml b/compose.yaml index 66a602a..13cc024 100644 --- a/compose.yaml +++ b/compose.yaml @@ -9,13 +9,6 @@ services: PYTHONDONTWRITEBYTECODE: 1 PYTHONUNBUFFERED: 1 DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE} - POSTGRES_DB: ${DB_NAME} - POSTGRES_USER: ${DB_USER} - POSTGRES_PASSWORD: ${DB_PASSWORD} - POSTGRES_HOST: ${DB_HOST} - POSTGRES_PORT: ${DB_PORT} - DEBUG: ${DEBUG} - ALLOWED_HOSTS: ${DEBUG} env_file: .env restart: unless-stopped diff --git a/src/website/settings.py b/src/website/settings.py index e0f989d..f7bd626 100644 --- a/src/website/settings.py +++ b/src/website/settings.py @@ -24,9 +24,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = "django-insecure-c$q7wdq+u@ow74wp!&zzkxdylkueu)(+34e%!e0du&bjwoqz9z" # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.getenv("DEBUG") -ALLOWED_HOSTS = ["test-vps.woutervermeer.com"] +ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS") # Application definition