Mercurial > public > sg101
comparison gpp/weblinks/urls.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | c0d0779b266f |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 """urls for the weblinks application""" | |
2 from django.conf.urls.defaults import * | |
3 | |
4 urlpatterns = patterns('weblinks.views', | |
5 url(r'^$', 'link_index', name='weblinks-main'), | |
6 (r'^add/$', 'add_link'), | |
7 (r'^add/thanks/$', 'add_thanks'), | |
8 url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', | |
9 'view_links', | |
10 name='weblinks-view_links'), | |
11 (r'^new/$', 'new_links'), | |
12 (r'^popular/$', 'popular_links'), | |
13 (r'^random/$', 'random_link'), | |
14 (r'^report/(\d+)/$', 'report_link'), | |
15 (r'^report/thanks/(\d+)$', 'report_thanks'), | |
16 url(r'^search/page/(?P<page>\d+)/$', | |
17 'search_links', | |
18 name="weblinks-search"), | |
19 (r'^visit/(\d+)/$', 'visit'), | |
20 ) |