comparison 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
comparison
equal deleted inserted replaced
1027:cd4db27c90e3 1028:5ba2508939f7
1 """urls for the bio application""" 1 """urls for the bio application"""
2 from django.conf.urls import patterns, url 2 from django.conf.urls import url
3 3
4 urlpatterns = patterns('bio.views', 4 import bio.views
5
6 urlpatterns = [
5 url(r'^members/(?P<type>user|date)/$', 7 url(r'^members/(?P<type>user|date)/$',
6 'member_list', 8 bio.views.member_list,
7 name='bio-member_list'), 9 name='bio-member_list'),
8 url(r'^members/search/$', 'member_search', name='bio-member_search'), 10 url(r'^members/search/$', bio.views.member_search, name='bio-member_search'),
9 url(r'^me/$', 'my_profile', name='bio-me'), 11 url(r'^me/$', bio.views.my_profile, name='bio-me'),
10 url(r'^view/(?P<username>[\w.@+-]{1,30})/$', 'view_profile', name='bio-view_profile'), 12 url(r'^view/(?P<username>[\w.@+-]{1,30})/$', bio.views.view_profile, name='bio-view_profile'),
11 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'), 13 url(r'^edit/$', bio.views.edit_profile, name='bio-edit_profile'),
12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'), 14 url(r'^edit/elsewhere/$', bio.views.edit_elsewhere, name='bio-edit_elsewhere'),
13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), 15 url(r'^avatar/$', bio.views.change_avatar, name='bio-change_avatar'),
14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'), 16 url(r'^flag/(\d+)/$', bio.views.flag_profile, name='bio-flag_profile'),
15 ) 17 ]