From 1f3b56121f6d9c6891dccce83523babb74759f72 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 14 Jan 2025 16:09:12 +0100 Subject: [PATCH] =?UTF-8?q?Debug=20le=C3=ADdo=20de=20entorno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysite/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysite/settings.py b/mysite/settings.py index a6bb9ff..e79474f 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -25,7 +25,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-5@k8%e-(*v+8nb1)dvie3_$$ol=3747i)x^n3%j9pg@9j$=b)_' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.environ["DEBUG"] == 'True' + ALLOWED_HOSTS = [".ocp-cluster.reymota.lab","127.0.0.1", ".sraopenshift.siemens.es"] CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "https://*.sraopenshift.siemens.es"]