Report this

What is the reason for this report?

Django not working with domain but working when accessed by server ip address?

Posted on July 17, 2020

I recently created a droplet.When i accessed the django project by droplet ip address it works fine but when i access it using domain (SaporaSocial), default nginx page shows. My allowed host are:-

ALLOWED_HOSTS=['server-ip-address','www.saporasocial.me','.saporasocial.me','saporasocial.me']

The developer cloud

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

Start building today

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