diff --git a/src/gestion_reservas/settings.py b/src/gestion_reservas/settings.py index 4e697b1..7cc413e 100644 --- a/src/gestion_reservas/settings.py +++ b/src/gestion_reservas/settings.py @@ -29,8 +29,8 @@ SECRET_KEY = 'hey' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.environ["DEBUG"] == 'True' -ALLOWED_HOSTS = [".ocp-cluster.reymota.lab"] - +ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", "jugaralpadel.rancher.reymota.lab", "jugaralpadel.es"] +CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "http://jugaralpadel.rancher.reymota.lab", " https://jugaralpadel.rancher.reymota.lab", " https://jugaralpadel.es"] # Application definition @@ -96,7 +96,7 @@ DATABASES = { "HOST": "postgresql", "PORT": "5432", } -} +} # Password validation # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators @@ -153,8 +153,6 @@ AUTH_USER_MODEL = "reymotausers.ReyMotaUser" MEDIA_ROOT = BASE_DIR / "mediafiles" MEDIA_URL = '/media/' -CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab"] - # Configuración de correo con Gmail if DEBUG is True: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'