Ticket #15314: 15314-static.diff
File 15314-static.diff, 523 bytes (added by , 14 years ago) |
---|
-
django/conf/urls/static.py
22 22 elif '://' in prefix: 23 23 raise ImproperlyConfigured("URL '%s' not allowed as static prefix" % prefix) 24 24 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), 26 26 )