From 199c0be297d032d5a459181c00ac76ea5a03f3bf Mon Sep 17 00:00:00 2001 From: minguezsanzjuanjose Date: Sat, 11 Apr 2026 19:41:58 +0200 Subject: [PATCH] actions y ip allowed en settings --- apps/promociones/actions.py | 2 +- core/settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/promociones/actions.py b/apps/promociones/actions.py index 5848372..919260d 100644 --- a/apps/promociones/actions.py +++ b/apps/promociones/actions.py @@ -16,7 +16,7 @@ def getData(params): # 2. Preparamos el diccionario de parámetros (tu estándar get_parameterized) # Limpiamos los datos antes de enviarlos a la base de datos id_promocion = clean_sql_int(params.get('id')) - is_active = 1 if params.get('activo') else 0 + is_active = True if params.get('activo') else False parameter_dict = [id_promocion, is_active] diff --git a/core/settings.py b/core/settings.py index fb4f363..9d07618 100644 --- a/core/settings.py +++ b/core/settings.py @@ -14,9 +14,10 @@ DEBUG = os.getenv('DEBUG', 'True').lower() == 'true' ALLOWED_HOSTS = [ 'v-encore-lab.com', 'dev.v-encore-lab.com', + '185.187.169.109', # Añade la IP aquí 'localhost', '127.0.0.1', - 'django_app_dev', # Para que Nginx se hable con él por nombre + 'django_app_dev', 'django_app_master' ]