diff bio/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 eeaf387803c6
line wrap: on
line diff
--- a/bio/urls.py	Mon Dec 14 20:42:20 2015 -0600
+++ b/bio/urls.py	Tue Dec 15 21:01:07 2015 -0600
@@ -1,15 +1,17 @@
 """urls for the bio application"""
-from django.conf.urls import patterns, url
+from django.conf.urls import url
 
-urlpatterns = patterns('bio.views',
+import bio.views
+
+urlpatterns = [
     url(r'^members/(?P<type>user|date)/$',
-        'member_list',
+        bio.views.member_list,
         name='bio-member_list'),
-    url(r'^members/search/$', 'member_search', name='bio-member_search'),
-    url(r'^me/$', 'my_profile', name='bio-me'),
-    url(r'^view/(?P<username>[\w.@+-]{1,30})/$', 'view_profile', name='bio-view_profile'),
-    url(r'^edit/$', 'edit_profile', name='bio-edit_profile'),
-    url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'),
-    url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'),
-    url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'),
-)
+    url(r'^members/search/$', bio.views.member_search, name='bio-member_search'),
+    url(r'^me/$', bio.views.my_profile, name='bio-me'),
+    url(r'^view/(?P<username>[\w.@+-]{1,30})/$', bio.views.view_profile, name='bio-view_profile'),
+    url(r'^edit/$', bio.views.edit_profile, name='bio-edit_profile'),
+    url(r'^edit/elsewhere/$', bio.views.edit_elsewhere, name='bio-edit_elsewhere'),
+    url(r'^avatar/$', bio.views.change_avatar, name='bio-change_avatar'),
+    url(r'^flag/(\d+)/$', bio.views.flag_profile, name='bio-flag_profile'),
+]