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/'