Mercurial > public > sg101
comparison gpp/downloads/urls.py @ 241:27bee3ac85e6
For #93: fix url scheme for downloads.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 01:01:40 +0000 |
parents | a5f27f25fa52 |
children | 41411066b16d |
comparison
equal
deleted
inserted
replaced
240:1246a4f1ab4f | 241:27bee3ac85e6 |
---|---|
4 from django.conf.urls.defaults import * | 4 from django.conf.urls.defaults import * |
5 | 5 |
6 urlpatterns = patterns('downloads.views', | 6 urlpatterns = patterns('downloads.views', |
7 url(r'^$', 'index', name='downloads-index'), | 7 url(r'^$', 'index', name='downloads-index'), |
8 url(r'^add/$', 'add', name='downloads-add'), | 8 url(r'^add/$', 'add', name='downloads-add'), |
9 url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', | 9 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', |
10 'category', | 10 'category', |
11 name='downloads-category'), | 11 name='downloads-category'), |
12 url(r'^details/(\d+)/$', 'details', name='downloads-details'), | 12 url(r'^details/(\d+)/$', 'details', name='downloads-details'), |
13 url(r'^(\d+)/$', 'download', name='downloads-download'), | 13 url(r'^(\d+)/$', 'download', name='downloads-download'), |
14 url(r'^new/$', 'new', name='downloads-new'), | 14 url(r'^new/$', 'new', name='downloads-new'), |
15 url(r'^popular/$', 'popular', name='downloads-popular'), | 15 url(r'^popular/$', 'popular', name='downloads-popular'), |
16 url(r'^random/$', 'random_download', name='downloads-random'), | 16 url(r'^random/$', 'random_download', name='downloads-random'), |
17 url(r'^rate/$', 'rate_download', name='downloads-rate'), | 17 url(r'^rate/$', 'rate_download', name='downloads-rate'), |
18 url(r'^rating/$', 'rating', name='downloads-rating'), | 18 url(r'^rating/$', 'rating', name='downloads-rating'), |
19 url(r'^search/page/(?P<page>\d+)/$', 'search', name='downloads-search'), | |
20 url(r'^thanks/$', 'thanks', name='downloads-add_thanks'), | 19 url(r'^thanks/$', 'thanks', name='downloads-add_thanks'), |
21 ) | 20 ) |