gremmie@1
|
1 """
|
gremmie@1
|
2 URLs for the downloads application.
|
gremmie@1
|
3 """
|
bgneal@1028
|
4 from django.conf.urls import url
|
gremmie@1
|
5
|
bgneal@1028
|
6 import downloads.views
|
bgneal@1028
|
7
|
bgneal@1028
|
8 urlpatterns = [
|
bgneal@1028
|
9 url(r'^$', downloads.views.index, name='downloads-index'),
|
bgneal@1028
|
10 url(r'^add/$', downloads.views.add, name='downloads-add'),
|
bgneal@241
|
11 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
|
bgneal@1028
|
12 downloads.views.category,
|
gremmie@1
|
13 name='downloads-category'),
|
bgneal@1028
|
14 url(r'^details/(\d+)/$', downloads.views.details, name='downloads-details'),
|
bgneal@1028
|
15 url(r'^new/$', downloads.views.new, name='downloads-new'),
|
bgneal@1028
|
16 url(r'^popular/$', downloads.views.popular, name='downloads-popular'),
|
bgneal@1028
|
17 url(r'^request/$', downloads.views.request_download, name='downloads-request_download'),
|
bgneal@1028
|
18 url(r'^rate/$', downloads.views.rate_download, name='downloads-rate'),
|
bgneal@1028
|
19 url(r'^rating/$', downloads.views.rating, name='downloads-rating'),
|
bgneal@1028
|
20 url(r'^thanks/$', downloads.views.thanks, name='downloads-add_thanks'),
|
bgneal@1028
|
21 ]
|