Browse Source

Povolit všechny lokální adresy

export_seznamu_prednasek
Pavel 'LEdoian' Turinsky 3 years ago
committed by Pavel "LEdoian" Turinsky
parent
commit
7d795a1fe1
  1. 4
      mamweb/settings_local.py

4
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

Loading…
Cancel
Save