From 87b9eeb69c3233378f1bd1e4bb06492258046a4a Mon Sep 17 00:00:00 2001 From: Viner Abubakirov Date: Sun, 4 Jan 2026 12:12:13 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20ALLOWE?= =?UTF-8?q?D=5FHOSTS=20=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B5=D0=B1=D0=B0=D0=B3?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- music_storage/music_storage/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_storage/music_storage/settings.py b/music_storage/music_storage/settings.py index 7311124..7518830 100644 --- a/music_storage/music_storage/settings.py +++ b/music_storage/music_storage/settings.py @@ -27,7 +27,7 @@ SECRET_KEY = os.getenv("SECRET_KEY", "") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv("DJANGO_DEBUG", "False") == "True" -ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",") +ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "").split(",") if not DEBUG else ["*"] if not DEBUG: USE_X_FORWARDED_HOST = True