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