Published Question
So, I created an Ubuntu droplet with nginx, gunicorn and django. I added my domain and when trying to access my django site I got a 502 error. I read in several places that adding my domain to ALLOWEDHOSTS should re...
Accepted Answer:
I figured out what the problem was. I didn't realize that at the bottom of my settings.py file ALLOWED_HOSTS was being overwritten when the IP addresses are looked up at runtime. Sooo, ALLOWED_HOSTS appears near the...
4
•
•
By
bschreiber
Nginx
Django
Configuration Management
Ubuntu 16.04