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