diff 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
line wrap: on
line diff
--- a/downloads/urls.py	Mon Dec 14 20:42:20 2015 -0600
+++ b/downloads/urls.py	Tue Dec 15 21:01:07 2015 -0600
@@ -1,19 +1,21 @@
 """
 URLs for the downloads application.
 """
-from django.conf.urls import patterns, url
+from django.conf.urls import url
 
-urlpatterns = patterns('downloads.views',
-    url(r'^$', 'index', name='downloads-index'),
-    url(r'^add/$', 'add', name='downloads-add'),
+import downloads.views
+
+urlpatterns = [
+    url(r'^$', downloads.views.index, name='downloads-index'),
+    url(r'^add/$', downloads.views.add, name='downloads-add'),
     url(r'^category/(?P<slug>[\w\d-]+)/(?P<sort>title|date|rating|hits)/$',
-       'category',
+       downloads.views.category,
        name='downloads-category'),
-    url(r'^details/(\d+)/$', 'details', name='downloads-details'),
-    url(r'^new/$', 'new', name='downloads-new'),
-    url(r'^popular/$', 'popular', name='downloads-popular'),
-    url(r'^request/$', 'request_download', name='downloads-request_download'),
-    url(r'^rate/$', 'rate_download', name='downloads-rate'),
-    url(r'^rating/$', 'rating', name='downloads-rating'),
-    url(r'^thanks/$', 'thanks', name='downloads-add_thanks'),
-)
+    url(r'^details/(\d+)/$', downloads.views.details, name='downloads-details'),
+    url(r'^new/$', downloads.views.new, name='downloads-new'),
+    url(r'^popular/$', downloads.views.popular, name='downloads-popular'),
+    url(r'^request/$', downloads.views.request_download, name='downloads-request_download'),
+    url(r'^rate/$', downloads.views.rate_download, name='downloads-rate'),
+    url(r'^rating/$', downloads.views.rating, name='downloads-rating'),
+    url(r'^thanks/$', downloads.views.thanks, name='downloads-add_thanks'),
+]