I’m trying to deploy my website and I used an nginx server with gunicorn. The server works as expected but the static files wont work, I guess I messed something up in my settings.py
Check first to ensure that nginx has permissions to those files. (Likely not. Note that while you might start nginx as root, the nginx process will downgrade itself to a non-root account by default. You definitely don’t want nginx itself running as root.)
In the common case, you want to deploy your static files to a directory already owned / accessible to nginx, which usually means something under /var/www. You almost certainly don’t want to expose /root to the outside world under any circumstances.