Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
If all your static files are in one directory you can tell nginx to try_files first and then proxy to your application if nothing on disk matches.
As long as your css/js are static (not generated by your django app on a per-request bassis) this should also mean your resources are served faster (nginx is better at serving static files than your django app is).
DELETE the + static(settings.STATICURL, documentroot=settings.STATIC_ROOT) thing. Your application is not supposed to serve static files. Add location entries in nginx instead BEFORE the location / enty.
location /static {
expires 90d;
alias /PLACETOYOUR/static/;
}
location /media {
expires 30d;
alias /PLACETOYOUR/media/;
}