Topic area
Files & assets
Static assets you build and media files users upload.
Django has two kinds of files with opposite lifecycles. Static files are built from your code on every release and can be cached forever; media files are uploaded by users and must survive every release.
Mixing the two, or storing media where a deploy replaces it, is behind most missing-file and lost-upload problems. The topics here keep them apart.
- Static files & frontend builds27 guides
collectstatic, WhiteNoise, CDNs, cache busting, and bundlers like Vite and Tailwind in production.
- Media & object storage34 guides
User uploads: where they are stored, how they are served, and how to keep them safe and persistent.
61 topic memberships across the area; a guide can belong to more than one topic.