Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.422 kb
from django.contrib.staticfiles.storage import CachedFilesMixin, StaticFilesStorage
import sys
class CachedStaticFilesStorage(CachedFilesMixin, StaticFilesStorage):
def hashed_name(self, name, content=None):
try:
return CachedFilesMixin.hashed_name(self, name, content)
except ValueError:
print >> sys.stderr, 'error hashing %s for staticfiles' % name
return name
Jump to Line
Something went wrong with that request. Please try again.