From e0e5d9e2903b5e0afee517b20a4be0731b48d045 Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Mon, 16 Mar 2026 20:33:46 +0000 Subject: [PATCH] trying to variablise allowed_hosts --- django_code/django_code/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_code/django_code/settings.py b/django_code/django_code/settings.py index b3291ad..fdc2605 100644 --- a/django_code/django_code/settings.py +++ b/django_code/django_code/settings.py @@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/4.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.2/ref/settings/ """ - +import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -25,8 +25,8 @@ SECRET_KEY = 'django-insecure-71%)_#e#o9-dl2o^6mfud-*rw+4+8vy-nd*bzeier&(34ap-p9 # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['django-testing.tryton.geeraert.eu','redirect.tryton.geeraert.eu'] - +#ALLOWED_HOSTS = ['django-testing.tryton.geeraert.eu','redirect.tryton.geeraert.eu'] +ALLOWED_HOSTS = os.environ['ALLOWED_HOSTS'] # Application definition