0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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

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'),
)