comparison downloads/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/downloads/urls.py@ddd69a8e07c7
children 5ba2508939f7
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """
2 URLs for the downloads application.
3 """
4 from django.conf.urls import patterns, url
5
6 urlpatterns = patterns('downloads.views',
7 url(r'^$', 'index', name='downloads-index'),
8 url(r'^add/$', 'add', name='downloads-add'),
9 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
10 'category',
11 name='downloads-category'),
12 url(r'^details/(\d+)/$', 'details', name='downloads-details'),
13 url(r'^new/$', 'new', name='downloads-new'),
14 url(r'^popular/$', 'popular', name='downloads-popular'),
15 url(r'^request/$', 'request_download', name='downloads-request_download'),
16 url(r'^rate/$', 'rate_download', name='downloads-rate'),
17 url(r'^rating/$', 'rating', name='downloads-rating'),
18 url(r'^thanks/$', 'thanks', name='downloads-add_thanks'),
19 )