0Pricing
Django Academy · Lesson

WhiteNoise for Static Files

Ship static assets without separate hosting.

The Static File Problem

In production Django will not serve your CSS and JS for you. Normally you need Nginx or a CDN, which adds setup. WhiteNoise simplifies this. 📦

What WhiteNoise Does

WhiteNoise lets your Django app serve its own static files efficiently, so a simple Gunicorn-only deploy can ship CSS and JS too.

All lessons in this course

  1. Gunicorn as the WSGI Server
  2. Nginx as a Reverse Proxy
  3. WhiteNoise for Static Files
  4. Environment Variables and Settings Split
← Back to Django Academy