Changed RSS urlconf to accept any character for param -- not just slashes and alphanumerics

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-09 00:40:47 +00:00
parent 8b71b9b870
commit 3aa236e10d
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from django.conf.urls.defaults import *
urlpatterns = patterns('django.views',
(r'^(?P<slug>\w+)/$', 'rss.rss.feed'),
(r'^(?P<slug>\w+)/(?P<param>[\w/]+)/$', 'rss.rss.feed'),
(r'^(?P<slug>[^/]+)/$', 'rss.rss.feed'),
(r'^(?P<slug>[^/]+)/(?P<param>.+)/$', 'rss.rss.feed'),
)