From 6eaa174d877993356cc92df5fb2669db485e5d93 Mon Sep 17 00:00:00 2001 From: Karel Balej Date: Mon, 10 Oct 2022 23:48:45 +0200 Subject: [PATCH] localhost do ALLOWED_HOSTS --- mamweb/settings_local.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mamweb/settings_local.py b/mamweb/settings_local.py index 9368524b..4cf76dc2 100644 --- a/mamweb/settings_local.py +++ b/mamweb/settings_local.py @@ -31,6 +31,7 @@ TEMPLATES[0]['OPTIONS']['debug'] = True from ipaddress import ip_network ALLOWED_HOSTS = [str(ip) for ip in ip_network('192.168.0.0/16')] ALLOWED_HOSTS.append('127.0.0.1') +ALLOWED_HOSTS.append('localhost') # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases