Browse Source

Corrijo allowed_hosts y csrf_trusted_hosts

main
creylopez 9 months ago
parent
commit
d0d8e49b6c
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/gestion_reservas/settings.py

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

@ -26,7 +26,7 @@ SECRET_KEY = 'hey'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ["DEBUG"] == 'True' DEBUG = os.environ["DEBUG"] == 'True'
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ")
ALLOWED_HOSTS = [".ocp-cluster.reymota.lab"]
# Application definition # Application definition
@ -150,10 +150,7 @@ AUTH_USER_MODEL = "reymotausers.ReyMotaUser"
MEDIA_ROOT = BASE_DIR / "mediafiles" MEDIA_ROOT = BASE_DIR / "mediafiles"
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
if DEBUG is False:
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ")
CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS").split(" ")
CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab"]
# Configuración de correo con Gmail # Configuración de correo con Gmail
if DEBUG is True: if DEBUG is True:


Loading…
Cancel
Save