euscanwww: fix urls

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
Corentin Chary 2011-08-26 13:27:46 +02:00
parent 42a2b61f55
commit 60bc61275e

View File

@ -7,24 +7,24 @@ package_patterns = patterns('euscan.views',
) )
categories_patterns = patterns('euscan.views', categories_patterns = patterns('euscan.views',
(r'(?P<category>[\w+][\w+.-]*)/view/$', 'category'), (r'^(?P<category>[\w+][\w+.-]*)/view/$', 'category'),
url(r'(?P<category>[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'), url(r'^(?P<category>[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'),
(r'(?P<category>[\w+][\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_category'), (r'^(?P<category>[\w+][\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_category'),
(r'$', 'categories'), (r'^$', 'categories'),
) )
herds_patterns = patterns('euscan.views', herds_patterns = patterns('euscan.views',
(r'(?P<herd>[\@\{\}\w+.-]*)/view/$', 'herd'), (r'^(?P<herd>[\@\{\}\w+.-]*)/view/$', 'herd'),
url(r'(?P<herd>[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'), url(r'^(?P<herd>[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'),
(r'(?P<herd>[\@\{\}\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_herd'), (r'^(?P<herd>[\@\{\}\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_herd'),
(r'$', 'herds'), (r'^$', 'herds'),
) )
maintainers_patterns = patterns('euscan.views', maintainers_patterns = patterns('euscan.views',
(r'(?P<maintainer_id>\d+)/view/$', 'maintainer'), (r'^(?P<maintainer_id>\d+)/view/$', 'maintainer'),
url(r'(?P<maintainer_id>\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'), url(r'^(?P<maintainer_id>\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'),
(r'(?P<maintainer_id>\d+)/charts/(?P<chart>[\w\-]+).png$', 'chart_maintainer'), (r'^(?P<maintainer_id>\d+)/charts/(?P<chart>[\w\-]+).png$', 'chart_maintainer'),
(r'$', 'maintainers'), (r'^$', 'maintainers'),
) )
urlpatterns = patterns('euscan.views', urlpatterns = patterns('euscan.views',