view gpp/weblinks/urls.py @ 171:b1766b1bda45

Add rss news feed link on home page. Add rss news feed image and link on news home.
author Brian Neal <bgneal@gmail.com>
date Fri, 12 Feb 2010 04:24:47 +0000
parents 952e05cb3d80
children 7e8d2dda99e3
line wrap: on
line source
"""urls for the weblinks application"""
from django.conf.urls.defaults import *

urlpatterns = patterns('weblinks.views',
   url(r'^$', 'link_index', name='weblinks-main'),
   (r'^add/$', 'add_link'),
   (r'^add/thanks/$', 'add_thanks'),
   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'),
   (r'^report/(\d+)/$', 'report_link'),
   url(r'^search/page/(?P<page>\d+)/$', 
      'search_links',
      name="weblinks-search"),
   url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"),
)