Povolit všechny lokální adresy
This commit is contained in:
parent
1254fa4ad7
commit
7d795a1fe1
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue