Is there a way to set a range of ALLOWED_HOSTS IPs in django?
Something like this:
ALLOWED_HOSTS = [\'172.17.*.*\']
I posted a ticket on Django however I was shown this could be achieved by doing the following
from socket import gethostname, gethostbyname ALLOWED_HOSTS = [ gethostname(), gethostbyname(gethostname()), ]
https://code.djangoproject.com/ticket/27485