diff 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
line wrap: on
line diff
--- a/gpp/downloads/urls.py	Wed Sep 15 00:14:54 2010 +0000
+++ b/gpp/downloads/urls.py	Wed Sep 15 01:01:40 2010 +0000
@@ -6,7 +6,7 @@
 urlpatterns = patterns('downloads.views',
     url(r'^$', 'index', name='downloads-index'),
     url(r'^add/$', 'add', name='downloads-add'),
-    url(r'^category/(?P<category>\d+)/(?P<sort>title|date|rating|hits)/page/(?P<page>\d+)/$', 
+    url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
        'category',
        name='downloads-category'),
     url(r'^details/(\d+)/$', 'details', name='downloads-details'),
@@ -16,6 +16,5 @@
     url(r'^random/$', 'random_download', name='downloads-random'),
     url(r'^rate/$', 'rate_download', name='downloads-rate'),
     url(r'^rating/$', 'rating', name='downloads-rating'),
-    url(r'^search/page/(?P<page>\d+)/$', 'search', name='downloads-search'),
     url(r'^thanks/$', 'thanks', name='downloads-add_thanks'),
 )