Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 555 Bytes

File metadata and controls

18 lines (15 loc) · 555 Bytes

Static files in Django

How do you "serve" files like images, videos, css, and JavaScript?

  1. Self-Hosted
    • Static File Server (your own via NGINX not Django)
    • Whitenoise (on Heroku; not-recommended for long term)
    • AWS S3 / Google Cloud Storage
  2. CDN
    • Use PUBLIC cdn files
    • Create our own CDN
      • AWS CloudFront
      • Google Cloud CDN
      • CloudFlare
      • Stackpath