staticfiles.storage.ManifestStaticFilesStorage.file_hash()

storage.ManifestStaticFilesStorage.file_hash(name, content=None)

The method that is used when creating the hashed name of a file. Needs to return a hash for the given file name and content. By default it calculates a MD5 hash from the content’s chunks as mentioned above. Feel free to override this method to use your own hashing algorithm.

doc_Django
2016-10-09 18:39:41
Comments
Leave a Comment

Please login to continue.