From 60bc61275e2ee8d33fcf78d1a1d256bc8d1ba256 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Fri, 26 Aug 2011 13:27:46 +0200 Subject: [PATCH] euscanwww: fix urls Signed-off-by: Corentin Chary --- euscanwww/euscan/urls.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/euscanwww/euscan/urls.py b/euscanwww/euscan/urls.py index 792c230..fee3d16 100644 --- a/euscanwww/euscan/urls.py +++ b/euscanwww/euscan/urls.py @@ -7,24 +7,24 @@ package_patterns = patterns('euscan.views', ) categories_patterns = patterns('euscan.views', - (r'(?P[\w+][\w+.-]*)/view/$', 'category'), - url(r'(?P[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'), - (r'(?P[\w+][\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_category'), - (r'$', 'categories'), + (r'^(?P[\w+][\w+.-]*)/view/$', 'category'), + url(r'^(?P[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'), + (r'^(?P[\w+][\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_category'), + (r'^$', 'categories'), ) herds_patterns = patterns('euscan.views', - (r'(?P[\@\{\}\w+.-]*)/view/$', 'herd'), - url(r'(?P[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'), - (r'(?P[\@\{\}\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_herd'), - (r'$', 'herds'), + (r'^(?P[\@\{\}\w+.-]*)/view/$', 'herd'), + url(r'^(?P[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'), + (r'^(?P[\@\{\}\w+.-]*)/charts/(?P[\w\-]+).png$', 'chart_herd'), + (r'^$', 'herds'), ) maintainers_patterns = patterns('euscan.views', - (r'(?P\d+)/view/$', 'maintainer'), - url(r'(?P\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'), - (r'(?P\d+)/charts/(?P[\w\-]+).png$', 'chart_maintainer'), - (r'$', 'maintainers'), + (r'^(?P\d+)/view/$', 'maintainer'), + url(r'^(?P\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'), + (r'^(?P\d+)/charts/(?P[\w\-]+).png$', 'chart_maintainer'), + (r'^$', 'maintainers'), ) urlpatterns = patterns('euscan.views',