From 147153ee13a982d06145fe5769b0f2935424b9b8 Mon Sep 17 00:00:00 2001 From: Ile Date: Tue, 21 Nov 2023 22:57:39 +0200 Subject: [PATCH] Add allowed hosts setting Django 1.5 required ALLOWED_HOSTS to be set in production environment. See: https://docs.djangoproject.com/en/4.2/releases/1.5/#allowed-hosts-required-in-production --- web/settings/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/settings/__init__.py b/web/settings/__init__.py index 81dfc547..d337f68b 100644 --- a/web/settings/__init__.py +++ b/web/settings/__init__.py @@ -2,6 +2,8 @@ hakemisto=os.path.normpath(os.path.dirname(__file__)) + '/..' +ALLOWED_HOSTS = ['localhost', '127.0.0.1'] + DEBUG = False TEMPLATE_DEBUG = DEBUG RECORDING = False