Resources about deploying Django app on VPS or local VM

Sure :

> sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

That’s weird because I now have Django that is targetted and I’m landing on “Disallowed host”

Whereas I did add 192.168.1.69 to settings.py :

ALLOWED_HOSTS = ["192.168.1.69", "localhost"]

EDIT :

It now works perfectly, I have just restarted gunicorn and nginx and then reloaded systemd daemons

sudo systemctl restart gunicorn
sudo systemctl restart nginx
sudo systemctl daemon-reload