Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
19:aa2b41c5212b | 20:c0d0779b266f |
---|---|
6 (r'^add/$', 'add_link'), | 6 (r'^add/$', 'add_link'), |
7 (r'^add/thanks/$', 'add_thanks'), | 7 (r'^add/thanks/$', 'add_thanks'), |
8 url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', | 8 url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', |
9 'view_links', | 9 'view_links', |
10 name='weblinks-view_links'), | 10 name='weblinks-view_links'), |
11 url(r'^detail/(\d+)/$', | |
12 'link_detail', | |
13 name='weblinks-link_detail'), | |
11 (r'^new/$', 'new_links'), | 14 (r'^new/$', 'new_links'), |
12 (r'^popular/$', 'popular_links'), | 15 (r'^popular/$', 'popular_links'), |
13 (r'^random/$', 'random_link'), | 16 (r'^random/$', 'random_link'), |
14 (r'^report/(\d+)/$', 'report_link'), | 17 (r'^report/(\d+)/$', 'report_link'), |
15 (r'^report/thanks/(\d+)$', 'report_thanks'), | 18 (r'^report/thanks/(\d+)$', 'report_thanks'), |