Django, a powerful Python web framework, is often deployed with an Nginx web server to handle static file requests and HTTPS redirection, and a Gunicorn WSGI server to serve the app. In this guide, we will augment this setup by offloading static files like Javascript and CSS stylesheets to DigitalOcean Spaces, and optionally delivering them using a Content Delivery Network, or CDN, which stores these files closer to end users to reduce transfer times. We’ll also use a DigitalOcean Managed PostgreSQL database as our data store to simplify the data layer and avoid having to manually configure a scalable PostgreSQL database.
digitalocean.com/community