Ticket #17455: ticket-17455.diff

File ticket-17455.diff, 720 bytes (added by tkaemming, 12 years ago)

patch to add data: to list of tuple prefixes for url post-processing

  • django/contrib/staticfiles/storage.py

    diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py
    index 8353889..39b7c72 100644
    a b class CachedFilesMixin(object):  
    118118            of the storage.
    119119            """
    120120            matched, url = matchobj.groups()
    121             # Completely ignore http(s) prefixed URLs
    122             if url.startswith(('http', 'https')):
     121            # Completely ignore http(s) and data: prefixed URLs
     122            if url.startswith(('http', 'https', 'data:')):
    123123                return matched
    124124            name_parts = name.split('/')
    125125            # Using posix normpath here to remove duplicates
Back to Top