From 39153808e42a9d7cea82ea2ae2559b348be80745 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 30 Aug 2024 14:57:49 +0200 Subject: [PATCH] Arreglo lo de la variable DEBUG --- RepostajesDj/K8S/Makefile | 2 +- RepostajesDj/vehiculos/vehiculos/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RepostajesDj/K8S/Makefile b/RepostajesDj/K8S/Makefile index c2784a6..2188098 100644 --- a/RepostajesDj/K8S/Makefile +++ b/RepostajesDj/K8S/Makefile @@ -1,7 +1,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') #export REGISTRY=registry.cube.local export REGISTRY=registry.reymota.es -export IMG_VERSION = 1.6 +export IMG_VERSION = 1.7 export IMG_NGINX_VERSION = 1.0 # limpia todo diff --git a/RepostajesDj/vehiculos/vehiculos/settings.py b/RepostajesDj/vehiculos/vehiculos/settings.py index c322dff..6227905 100644 --- a/RepostajesDj/vehiculos/vehiculos/settings.py +++ b/RepostajesDj/vehiculos/vehiculos/settings.py @@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.environ.get("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = bool(os.environ.get("DEBUG", default=False)) +DEBUG = os.environ["DEBUG"] == 'True' ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS").split(" ")