From 7d795a1fe1af9420f03a9b8ff0a88615b0f8996a Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 25 Nov 2021 21:49:20 +0100 Subject: [PATCH] =?UTF-8?q?Povolit=20v=C5=A1echny=20lok=C3=A1ln=C3=AD=20ad?= =?UTF-8?q?resy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/settings_local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mamweb/settings_local.py b/mamweb/settings_local.py index 85058c9f..9368524b 100644 --- a/mamweb/settings_local.py +++ b/mamweb/settings_local.py @@ -28,7 +28,9 @@ INTERNAL_IPS = ['127.0.0.1'] TEMPLATES[0]['OPTIONS']['debug'] = True -ALLOWED_HOSTS = ['127.0.0.1', '192.168.43.34'] +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') # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases