From d519753227ecb9eb3847396770a19c3f0133c96e Mon Sep 17 00:00:00 2001 From: Shahdidul Date: Wed, 10 Dec 2025 21:49:02 +0600 Subject: [PATCH] updated debug and allowed hosts for prod --- Backend/API_DOCS.md | 2 +- Backend/config/settings.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backend/API_DOCS.md b/Backend/API_DOCS.md index e970f93..e910e02 100644 --- a/Backend/API_DOCS.md +++ b/Backend/API_DOCS.md @@ -1,6 +1,6 @@ # Authentication API Documentation -Base URL: `http://localhost:8000` (dev) | `https://your-backend.vercel.app` (prod) +Base URL: `http://localhost:8000` (dev) | `https://toc-simulator-backend.onrender.com` (prod) ## Endpoints diff --git a/Backend/config/settings.py b/Backend/config/settings.py index 63da4d2..d0f9a3b 100644 --- a/Backend/config/settings.py +++ b/Backend/config/settings.py @@ -30,8 +30,8 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv('DEBUG', 'True') == 'True' -# Allow all hosts for development/testing -ALLOWED_HOSTS = ['*'] +# Allowed hosts: localhost for dev, Render for production +ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'toc-simulator-backend.onrender.com'] # Application definition