From 050ce48f38e99cba9b91d91834208bccd3809270 Mon Sep 17 00:00:00 2001 From: Basyrov Rustam Date: Thu, 5 Jun 2025 01:38:43 +0300 Subject: [PATCH] fixed allowed hosts Without it, Django can't work in docker-network --- mysite/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysite/settings.py b/mysite/settings.py index 61a8d6c..7a3c023 100644 --- a/mysite/settings.py +++ b/mysite/settings.py @@ -26,7 +26,7 @@ SECRET_KEY = "django-insecure-7@a)l@%smekjdwtc%$)k=qs^5k8@fnmc+vxk)(!mi5ojrbhgn+ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["localhost"] # Application definition