Mercurial > public > sg101
comparison downloads/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 URLs for the downloads application. | 2 URLs for the downloads application. |
3 """ | 3 """ |
4 from django.conf.urls import patterns, url | 4 from django.conf.urls import url |
5 | 5 |
6 urlpatterns = patterns('downloads.views', | 6 import downloads.views |
7 url(r'^$', 'index', name='downloads-index'), | 7 |
8 url(r'^add/$', 'add', name='downloads-add'), | 8 urlpatterns = [ |
9 url(r'^$', downloads.views.index, name='downloads-index'), | |
10 url(r'^add/$', downloads.views.add, name='downloads-add'), | |
9 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', | 11 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', |
10 'category', | 12 downloads.views.category, |
11 name='downloads-category'), | 13 name='downloads-category'), |
12 url(r'^details/(\d+)/$', 'details', name='downloads-details'), | 14 url(r'^details/(\d+)/$', downloads.views.details, name='downloads-details'), |
13 url(r'^new/$', 'new', name='downloads-new'), | 15 url(r'^new/$', downloads.views.new, name='downloads-new'), |
14 url(r'^popular/$', 'popular', name='downloads-popular'), | 16 url(r'^popular/$', downloads.views.popular, name='downloads-popular'), |
15 url(r'^request/$', 'request_download', name='downloads-request_download'), | 17 url(r'^request/$', downloads.views.request_download, name='downloads-request_download'), |
16 url(r'^rate/$', 'rate_download', name='downloads-rate'), | 18 url(r'^rate/$', downloads.views.rate_download, name='downloads-rate'), |
17 url(r'^rating/$', 'rating', name='downloads-rating'), | 19 url(r'^rating/$', downloads.views.rating, name='downloads-rating'), |
18 url(r'^thanks/$', 'thanks', name='downloads-add_thanks'), | 20 url(r'^thanks/$', downloads.views.thanks, name='downloads-add_thanks'), |
19 ) | 21 ] |