Ticket #15598: patch.txt

File patch.txt, 594 bytes (added by Sergey Grigoriev, 13 years ago)

Patch

Line 
1diff --git a/django/conf/urls/static.py b/django/conf/urls/static.py
2index ff1942f..fb4ba0a 100644
3--- a/django/conf/urls/static.py
4+++ b/django/conf/urls/static.py
5@@ -19,8 +19,6 @@ def static(prefix, view='django.views.static.serve', **kwargs):
6 return []
7 elif not prefix:
8 raise ImproperlyConfigured("Empty static prefix not permitted")
9- elif '://' in prefix:
10- raise ImproperlyConfigured("URL '%s' not allowed as static prefix" % prefix)
11 return patterns('',
12 url(r'^%s(?P<path>.*)$' % re.escape(prefix.lstrip('/')), view, kwargs=kwargs),
13 )
Back to Top