class documentation
class ManifestStaticFilesStorage(ManifestFilesMixin, StaticFilesStorage): (source)
A static file system storage backend which also saves hashed copies of the files it saves.
Inherited from ManifestFilesMixin
:
Method | __init__ |
Undocumented |
Method | load |
Undocumented |
Method | post |
Post process the given dictionary of files (called from collectstatic). |
Method | read |
Undocumented |
Method | save |
Undocumented |
Method | stored |
Undocumented |
Class Variable | keep |
Undocumented |
Class Variable | manifest |
Undocumented |
Class Variable | manifest |
Undocumented |
Class Variable | manifest |
Undocumented |
Instance Variable | hashed |
Undocumented |
Instance Variable | manifest |
Undocumented |
Inherited from HashedFilesMixin
(via ManifestFilesMixin
):
Method | clean |
Undocumented |
Method | file |
Return a hash of the file with the given name and optional content. |
Method | hash |
Undocumented |
Method | hashed |
Undocumented |
Method | url |
Return the non-hashed URL in DEBUG mode. |
Method | url |
Return the custom URL converter for the given file name. |
Class Variable | default |
Undocumented |
Class Variable | max |
Undocumented |
Class Variable | patterns |
Undocumented |
Method | _post |
Undocumented |
Method | _stored |
Undocumented |
Method | _url |
Return the non-hashed URL in DEBUG mode. |
Instance Variable | _patterns |
Undocumented |
Inherited from StaticFilesStorage
(via ManifestFilesMixin
, HashedFilesMixin
):
Method | path |
Return a local filesystem path where the file can be retrieved using Python's built-in open() function. Storage systems that can't be accessed using open() should *not* implement this method. |
Instance Variable | base |
Undocumented |
Instance Variable | location |
Undocumented |
Inherited from FileSystemStorage
(via ManifestFilesMixin
, HashedFilesMixin
, StaticFilesStorage
):
Method | delete |
Delete the specified file from the storage system. |
Method | exists |
Return True if a file referenced by the given name already exists in the storage system, or False if the name is available for a new file. |
Method | get |
Return the last accessed time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True. |
Method | get |
Return the creation time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True. |
Method | get |
Return the last modified time (as a datetime) of the file specified by name. The datetime will be timezone-aware if USE_TZ=True. |
Method | listdir |
List the contents of the specified path. Return a 2-tuple of lists: the first item being directories, the second item being files. |
Method | size |
Return the total size, in bytes, of the file specified by name. |
Constant | OS |
Undocumented |
Property | base |
Undocumented |
Property | directory |
Undocumented |
Property | file |
Undocumented |
Method | _clear |
Reset setting based property values. |
Method | _datetime |
If timezone support is enabled, make an aware datetime object in UTC; otherwise make a naive one in the local timezone. |
Method | _ensure |
Undocumented |
Method | _open |
Undocumented |
Method | _save |
Undocumented |
Method | _value |
Undocumented |
Instance Variable | _base |
Undocumented |
Instance Variable | _directory |
Undocumented |
Instance Variable | _file |
Undocumented |
Instance Variable | _location |
Undocumented |
Inherited from Storage
(via ManifestFilesMixin
, HashedFilesMixin
, StaticFilesStorage
, FileSystemStorage
):
Method | generate |
Validate the filename by calling get_valid_name() and return a filename to be passed to the save() method. |
Method | get |
Return an alternative filename, by adding an underscore and a random 7 character alphanumeric string (before the file extension, if one exists) to the filename. |
Method | get |
Return a filename that's free on the target storage system and available for new content to be written to. |
Method | get |
Return a filename, based on the provided filename, that's suitable for use in the target storage system. |
Method | open |
Retrieve the specified file from storage. |
Method | save |
Save new content to the file specified by name. The content should be a proper File object or any Python file-like object, ready to be read from the beginning. |