gremmie@1: """urls for the weblinks application""" gremmie@1: from django.conf.urls.defaults import * gremmie@1: gremmie@1: urlpatterns = patterns('weblinks.views', gremmie@1: url(r'^$', 'link_index', name='weblinks-main'), gremmie@1: (r'^add/$', 'add_link'), gremmie@1: (r'^add/thanks/$', 'add_thanks'), gremmie@1: url(r'^category/(?P\d+)/(?Ptitle|date|rating|hits)/page/(?P\d+)/$', gremmie@1: 'view_links', gremmie@1: name='weblinks-view_links'), gremmie@1: (r'^new/$', 'new_links'), gremmie@1: (r'^popular/$', 'popular_links'), gremmie@1: (r'^random/$', 'random_link'), gremmie@1: (r'^report/(\d+)/$', 'report_link'), gremmie@1: (r'^report/thanks/(\d+)$', 'report_thanks'), gremmie@1: url(r'^search/page/(?P\d+)/$', gremmie@1: 'search_links', gremmie@1: name="weblinks-search"), gremmie@1: (r'^visit/(\d+)/$', 'visit'), gremmie@1: )