comparison gpp/downloads/urls.py @ 574:ddd69a8e07c7

For Django 1.4, use django.conf.urls instead of django.conf.urls.defaults.
author Brian Neal <bgneal@gmail.com>
date Thu, 03 May 2012 20:45:16 -0500
parents 41411066b16d
children
comparison
equal deleted inserted replaced
573:bcc4e8cf841b 574:ddd69a8e07c7
1 """ 1 """
2 URLs for the downloads application. 2 URLs for the downloads application.
3 """ 3 """
4 from django.conf.urls.defaults import * 4 from django.conf.urls import patterns, url
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<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$', 9 url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',