From 1dc45c62ee2b51ce57b4092bc33d8a66c5b1ec3e Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Sat, 30 Jan 2021 23:43:00 -0500 Subject: [PATCH] fix(backend): changed debug from string to bool --- backend/config/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/config/settings.py b/backend/config/settings.py index bdfc8ec..66a5893 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -27,12 +27,12 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = os.getenv("SECRET_KEY") # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.getenv("DEBUG") +DEBUG = os.getenv("DEBUG") == 'True' if DEBUG: ALLOWED_HOSTS = ["*"] else: - ALLOWED_HOSTS = ["reinvest.online"] + ALLOWED_HOSTS = ["api.reinvest.space"] # Application definition @@ -155,4 +155,4 @@ USE_TZ = True STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') -MEDIA_URL = '/media/' \ No newline at end of file +MEDIA_URL = '/media/'