Commit 9a068e3b authored by Jean Michel Rouly's avatar Jean Michel Rouly

Named filter urls

parent 79451e84
......@@ -3,8 +3,8 @@ from django.conf.urls import patterns, include, url
urlpatterns = patterns('website.views',
#### Available filters
url(r'^section/(?P<section>[a-zA-Z]+ {0,1}[0-9]*)$', 'index'),
url(r'^date$', 'index', {'sort': 'date'}),
url(r'^comments$', 'index', {'sort': 'comments'}),
url(r'^section/(?P<section>[a-zA-Z]+ {0,1}[0-9]*)$', 'index', name='filter_by_section'),
url(r'^date$', 'index', {'sort': 'date'}, name='sort_by_date'),
url(r'^comments$', 'index', {'sort': 'comments'}, name='sort_by_comments'),
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment