Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

allowed_hosts error ecs django

from socket import gethostname, gethostbyname, gethostbyname_ex
ALLOWED_HOSTS = [ gethostname(), ] + list(set(gethostbyname_ex(gethostname())[2]))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #error #ecs #django
ADD COMMENT
Topic
Name
3+9 =