A class for the static files app in Django that invalidates outdated browser cache.
You add the line
STATICFILES_STORAGE = 'path.to.hashpathstaticfilesstorage.HashPathStaticFilesStorage'
# -*- coding: utf-8 -*- | |
class LazyMapperItem(object): | |
def __init__(self, item, mapping): | |
self.__item = item | |
self.__mapping = mapping | |
def __getattr__(self, name): | |
try: | |
real_name = self.__mapping[name] |