Topic area

Files & assets

Static assets you build and media files users upload.

two kinds of files, two lifecyclesStaticbuilt by collectstatichashed, cached foreverrebuilt every releaseMediauploaded by usersmust survive every releasebacked up, access-checkedMixing the two is the root of most missing-file and lost-upload problems

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.

61 topic memberships across the area; a guide can belong to more than one topic.