I've been working on serving a Django app from an Ubuntu server. I've followed all of the instructions in http://senko.net/en/django-nginx-gunicorn/, but when I get to the gunicorn_django -b 0.0.0.0:8000
step, the site suddenly stops serving static files. The site works just fine using the dev server python manage.py runserver 0.0.0.0:8000
.
I haven't changed the stock settings for anything. Any ideas why this is not working?
EDIT:
After following the rest of the tutorial and the advice of Andrew Gorcester, I added a
location /static {
root /path/to/static/files;
}
to my nginx sites-available
file, and everything seems to be working!