Procházet zdrojové kódy

Igualo fichero settings.py

Celestino Rey před 1 rokem
rodič
revize
20b68f4404
1 změnil soubory, kde provedl 3 přidání a 5 odebrání
  1. 3 5
      src/gestion_reservas/settings.py

+ 3 - 5
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'