22
loading...
This website collects cookies to deliver better user experience
To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address
sudo journalctl -u gunicorn -r
), I learned that my environment variables are not being found in the wsgi.py file. Eventually, I find a post about the issue in StackOverflow here: https://stackoverflow.com/questions/38178836/django-settings-secret-key-environment-variable-502-nginx . Basically, for Nginx, I can set up my env variable for settings-related files inside gunicorn.service file instead.python manage.py collectstatic --noinput --clear
and
sudo systemctl restart gunicorn