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