Povolit všechny lokální adresy

This commit is contained in:
Pavel 'LEdoian' Turinsky 2021-11-25 21:49:20 +01:00 committed by Pavel "LEdoian" Turinsky
parent 1254fa4ad7
commit 7d795a1fe1

View file

@ -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