comparison gpp/weblinks/urls.py @ 242:7e8d2dda99e3

For #93: fix url scheme for weblinks.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 03:24:01 +0000
parents 952e05cb3d80
children ddd69a8e07c7
comparison
equal deleted inserted replaced
241:27bee3ac85e6 242:7e8d2dda99e3
1 """urls for the weblinks application""" 1 """urls for the weblinks application"""
2 from django.conf.urls.defaults import * 2 from django.conf.urls.defaults import *
3 3
4 urlpatterns = patterns('weblinks.views', 4 urlpatterns = patterns('weblinks.views',
5 url(r'^$', 'link_index', name='weblinks-main'), 5 url(r'^$', 'link_index', name='weblinks-main'),
6 (r'^add/$', 'add_link'), 6 url(r'^add/$', 'add_link', name='weblinks-add_link'),
7 (r'^add/thanks/$', 'add_thanks'), 7 url(r'^add/thanks/$', 'add_thanks', name='weblinks-add_thanks'),
8 url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', 8 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
9 'view_links', 9 'view_links',
10 name='weblinks-view_links'), 10 name='weblinks-view_links'),
11 url(r'^detail/(\d+)/$', 11 url(r'^detail/(\d+)/$',
12 'link_detail', 12 'link_detail',
13 name='weblinks-link_detail'), 13 name='weblinks-link_detail'),
14 (r'^new/$', 'new_links'), 14 url(r'^new/$', 'new_links', name='weblinks-new_links'),
15 (r'^popular/$', 'popular_links'), 15 url(r'^popular/$', 'popular_links', name='weblinks-popular_links'),
16 (r'^random/$', 'random_link'), 16 url(r'^random/$', 'random_link', name='weblinks-random_link'),
17 (r'^report/(\d+)/$', 'report_link'), 17 url(r'^report/(\d+)/$', 'report_link', name='weblinks-report_link'),
18 url(r'^search/page/(?P<page>\d+)/$',
19 'search_links',
20 name="weblinks-search"),
21 url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"), 18 url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"),
22 ) 19 )