Browse Source

Igualo fichero settings.py

main
Celestino Rey 9 months ago
parent
commit
20b68f4404
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/gestion_reservas/settings.py

+ 3
- 5
src/gestion_reservas/settings.py View File

@ -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'


Loading…
Cancel
Save