Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi, I am a novice. I have installed django from the 1 click marketplace. I am getting the response from the ip url. Have added domain name and no problem ssh to the server. I have edited the settings and added the domain name but still getting: Invalid HTTP_HOST header: ‘www.mydomain.com’. You may need to add ‘www.mydomain.com’ to ALLOWED_HOSTS
Below is the setting.py:
def ip_addresses():
ip_list = ['159.223.76.95', '2400:6180:0:d0::fb9:8001']
for interface in netifaces.interfaces():
addrs = netifaces.ifaddresses(interface)
for x in (netifaces.AF_INET, netifaces.AF_INET6):
if x in addrs:
ip_list.append(addrs[x][0]['addr'])
return ip_list
ALLOWED_HOSTS = ip_addresses('www.mydomain.com')
Matteo Scarpa
Matteo Scarpa
KFSys
4ae272398ee6445a9bf73f4cd632b5
KFSys
phosphide
KFSys
KFSys
garantieheld
KFSys