gremmie@1: """urls for the weblinks application""" bgneal@574: from django.conf.urls import patterns, url gremmie@1: gremmie@1: urlpatterns = patterns('weblinks.views', gremmie@1: url(r'^$', 'link_index', name='weblinks-main'), bgneal@242: url(r'^add/$', 'add_link', name='weblinks-add_link'), bgneal@242: url(r'^add/thanks/$', 'add_thanks', name='weblinks-add_thanks'), bgneal@242: url(r'^category/(?P[\w\d-]+)/(?Ptitle|date|rating|hits)/$', gremmie@1: 'view_links', gremmie@1: name='weblinks-view_links'), bgneal@20: url(r'^detail/(\d+)/$', bgneal@20: 'link_detail', bgneal@20: name='weblinks-link_detail'), bgneal@242: url(r'^new/$', 'new_links', name='weblinks-new_links'), bgneal@242: url(r'^popular/$', 'popular_links', name='weblinks-popular_links'), bgneal@242: url(r'^random/$', 'random_link', name='weblinks-random_link'), bgneal@242: url(r'^report/(\d+)/$', 'report_link', name='weblinks-report_link'), bgneal@165: url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"), gremmie@1: )