class documentation

class ManifestFilesMixin(HashedFilesMixin):

Known subclasses: django.contrib.staticfiles.storage.ManifestStaticFilesStorage

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method load​_manifest Undocumented
Method post​_process Post process the given dictionary of files (called from collectstatic).
Method read​_manifest Undocumented
Method save​_manifest Undocumented
Method stored​_name Undocumented
Class Variable keep​_intermediate​_files Undocumented
Class Variable manifest​_name Undocumented
Class Variable manifest​_strict Undocumented
Class Variable manifest​_version Undocumented
Instance Variable hashed​_files Undocumented
Instance Variable manifest​_storage Undocumented

Inherited from HashedFilesMixin:

Method ​_post​_process Undocumented
Method ​_stored​_name Undocumented
Method ​_url Return the non-hashed URL in DEBUG mode.
Method clean​_name Undocumented
Method file​_hash Return a hash of the file with the given name and optional content.
Method hash​_key Undocumented
Method hashed​_name Undocumented
Method url Return the non-hashed URL in DEBUG mode.
Method url​_converter Return the custom URL converter for the given file name.
Class Variable default​_template Undocumented
Class Variable max​_post​_process​_passes Undocumented
Class Variable patterns Undocumented
Instance Variable ​_patterns Undocumented
def __init__(self, *args, manifest_storage=None, **kwargs):
def load_manifest(self):

Undocumented

def post_process(self, *args, **kwargs):

Post process the given dictionary of files (called from collectstatic).

Processing is actually two separate operations:

  1. renaming files to include a hash of their content for cache-busting, and copying those files to the target storage.
  2. adjusting files which contain references to other files so they refer to the cache-busting filenames.

If either of these are performed on a file, then that file is considered post-processed.

def read_manifest(self):

Undocumented

def save_manifest(self):

Undocumented

def stored_name(self, name):
keep_intermediate_files: bool =
manifest_name: str =

Undocumented

manifest_strict: bool =

Undocumented

manifest_version: str =

Undocumented

hashed_files: dict =
manifest_storage =

Undocumented