Mercurial > public > sg101
comparison weblinks/urls.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/weblinks/urls.py@ddd69a8e07c7 |
children | 5ba2508939f7 |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """urls for the weblinks application""" | |
2 from django.conf.urls import patterns, url | |
3 | |
4 urlpatterns = patterns('weblinks.views', | |
5 url(r'^$', 'link_index', name='weblinks-main'), | |
6 url(r'^add/$', 'add_link', name='weblinks-add_link'), | |
7 url(r'^add/thanks/$', 'add_thanks', name='weblinks-add_thanks'), | |
8 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', | |
9 'view_links', | |
10 name='weblinks-view_links'), | |
11 url(r'^detail/(\d+)/$', | |
12 'link_detail', | |
13 name='weblinks-link_detail'), | |
14 url(r'^new/$', 'new_links', name='weblinks-new_links'), | |
15 url(r'^popular/$', 'popular_links', name='weblinks-popular_links'), | |
16 url(r'^random/$', 'random_link', name='weblinks-random_link'), | |
17 url(r'^report/(\d+)/$', 'report_link', name='weblinks-report_link'), | |
18 url(r'^visit/(\d+)/$', 'visit', name="weblinks-visit"), | |
19 ) |