Mercurial > public > sg101
diff gpp/weblinks/urls.py @ 20:c0d0779b266f
Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:41:37 +0000 |
parents | dbd703f7d63a |
children | 952e05cb3d80 |
line wrap: on
line diff
--- a/gpp/weblinks/urls.py Sun Apr 19 20:10:00 2009 +0000 +++ b/gpp/weblinks/urls.py Sun Apr 19 20:41:37 2009 +0000 @@ -8,6 +8,9 @@ url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', 'view_links', name='weblinks-view_links'), + url(r'^detail/(\d+)/$', + 'link_detail', + name='weblinks-link_detail'), (r'^new/$', 'new_links'), (r'^popular/$', 'popular_links'), (r'^random/$', 'random_link'),