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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.