Single click DO django droplet rejects domain name
I have set up a single click droplet with Django. Access works properly using the ip address (22.214.171.124) but not the newly assigned domain name (www.rxitsurvey.com).
Although the debugging information provided by Django suggests the site name be added to the ALLOWED HOSTS in the settings.py file, that file uses the ipaddresses() function to determine the hosts at run time.
As a fix I have tried this: I added the domain names to the nginx configuration file (copied the original /sites-available/django file as /sites-available/django_1 and linked this file to the /sites-enabled folder (removed the django file in this folder). This did not correct the problem.
How do I fix this?