From 9e3b56fbff3707d83abe4adda4e5619a00fe0a7b Mon Sep 17 00:00:00 2001 From: Denis Bulgakov Date: Tue, 24 Dec 2024 23:22:21 +0400 Subject: [PATCH] fix for review --- backend/kittygram_backend/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/kittygram_backend/settings.py b/backend/kittygram_backend/settings.py index 6dc4cdb..5aade09 100644 --- a/backend/kittygram_backend/settings.py +++ b/backend/kittygram_backend/settings.py @@ -13,9 +13,7 @@ DEBUG = os.getenv('DEBUG', 'False') == 'True' -ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '').split(',') -if '*' in ALLOWED_HOSTS: - ALLOWED_HOSTS = ['*'] +ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '*').split(',') STATIC_ROOT = '/app/collected_static'