Ticket #15314: 15314-static.diff

File 15314-static.diff, 523 bytes (added by Bruno Renié, 14 years ago)
  • django/conf/urls/static.py

     
    2222    elif '://' in prefix:
    2323        raise ImproperlyConfigured("URL '%s' not allowed as static prefix" % prefix)
    2424    return patterns('',
    25         url(r'^%s(?P<path>.*)$' % re.escape(prefix.lstrip('/')), view, **kwargs),
     25        url(r'^%s(?P<path>.*)$' % re.escape(prefix.lstrip('/')), view, kwargs),
    2626    )
Back to Top