From b6c282f6cc7b2b882d3e5289ed1c4117ff3bae4e Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Tue, 28 Jan 2025 22:16:20 +0330 Subject: [PATCH] debug True --- backend/core/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/core/settings.py b/backend/core/settings.py index 7421780..7595fbe 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -27,13 +27,13 @@ EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD") DEFAULT_FROM_EMAIL = os.getenv("SECRET_KEY") SECRET_KEY = os.getenv("SECRET_KEY") -DEBUG = False +DEBUG = True # in production lists of allowed hosts and allowed orgins will genrate # in development every host and orgin will be true # in prodcution it will use the postgres info you enterd in .env.local # in development it will use the sqlite BASE_DIR = Path(__file__).resolve().parent.parent -if not DEBUG: +if DEBUG: ALLOWED_HOSTS = ['127.0.0.1', 'localhost', DOMAIN, API_DOMAIN] CSRF_TRUSTED_ORIGINS = [ f"https://{DOMAIN}",