staticfiles.storage.CachedStaticFilesStorage

class storage.CachedStaticFilesStorage

CachedStaticFilesStorage is a similar class like the ManifestStaticFilesStorage class but uses Django’s caching framework for storing the hashed names of processed files instead of a static manifest file called staticfiles.json. This is mostly useful for situations in which you don’t have access to the file system.

If you want to override certain options of the cache backend the storage uses, simply specify a custom entry in the CACHES setting named 'staticfiles'. It falls back to using the 'default' cache backend.

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

Please login to continue.