class documentation

Undocumented

Method __init__ Undocumented
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 post_process Post process the given dictionary of files (called from collectstatic).
Method stored_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 keep_intermediate_files Undocumented
Class Variable max_post_process_passes Undocumented
Class Variable patterns Undocumented
Instance Variable hashed_files Undocumented
Method _post_process Undocumented
Method _stored_name Undocumented
Method _url Return the non-hashed URL in DEBUG mode.
Instance Variable _patterns Undocumented
def __init__(self, *args, **kwargs): (source)
def clean_name(self, name): (source)

Undocumented

def file_hash(self, name, content=None): (source)

Return a hash of the file with the given name and optional content.

def hash_key(self, name): (source)

Undocumented

def hashed_name(self, name, content=None, filename=None): (source)

Undocumented

def post_process(self, paths, dry_run=False, **options): (source)

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 stored_name(self, name): (source)
def url(self, name, force=False): (source)

Return the non-hashed URL in DEBUG mode.

def url_converter(self, name, hashed_files, template=None): (source)

Return the custom URL converter for the given file name.

default_template: str = (source)

Undocumented

keep_intermediate_files: bool = (source)
max_post_process_passes: int = (source)

Undocumented

patterns: tuple[tuple, ...] = (source)

Undocumented

def _post_process(self, paths, adjustable_paths, hashed_files): (source)

Undocumented

def _stored_name(self, name, hashed_files): (source)

Undocumented

def _url(self, hashed_name_func, name, force=False, hashed_files=None): (source)

Return the non-hashed URL in DEBUG mode.

_patterns: dict = (source)

Undocumented