diff --git a/gestion_reservas/gestion_reservas/settings.py b/gestion_reservas/gestion_reservas/settings.py index 68b203c..3e3ad29 100644 --- a/gestion_reservas/gestion_reservas/settings.py +++ b/gestion_reservas/gestion_reservas/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = 'hey' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.environ["DEBUG"] == 'True' -ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ") +ALLOWED_HOSTS = ".ocp-cluster.reymota.lab" # Application definition @@ -85,12 +85,12 @@ WSGI_APPLICATION = 'gestion_reservas.wsgi.application' DATABASES = { "default": { - "ENGINE": os.environ.get("SQL_ENGINE", "django.db.backends.sqlite3"), - "NAME": os.environ.get("SQL_DATABASE", BASE_DIR / "db.sqlite3"), - "USER": os.environ.get("SQL_USER", "user"), - "PASSWORD": os.environ.get("SQL_PASSWORD", "password"), - "HOST": os.environ.get("SQL_HOST", "localhost"), - "PORT": os.environ.get("SQL_PORT", "5432"), + "ENGINE": "django.db.backends.postgresql", + "NAME": "jugaralpadel", + "USER": "creylopez", + "PASSWORD": "Dsa-0213", + "HOST": "postgresql", + "PORT": "5432", } } @@ -149,7 +149,7 @@ AUTH_USER_MODEL = "reymotausers.ReyMotaUser" MEDIA_ROOT = BASE_DIR / "media" MEDIA_URL = '/media/' -CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ") +CSRF_TRUSTED_ORIGINS = "https://*.ocp-cluster.reymota.lab" # Configuración de correo con Gmail if DEBUG is True: