Mercurial > public > sg101
comparison bio/urls.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/bio/urls.py@ddd69a8e07c7 |
children | 5ba2508939f7 |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """urls for the bio application""" | |
2 from django.conf.urls import patterns, url | |
3 | |
4 urlpatterns = patterns('bio.views', | |
5 url(r'^members/(?P<type>user|date)/$', | |
6 'member_list', | |
7 name='bio-member_list'), | |
8 url(r'^members/search/$', 'member_search', name='bio-member_search'), | |
9 url(r'^me/$', 'my_profile', name='bio-me'), | |
10 url(r'^view/(?P<username>[\w.@+-]{1,30})/$', 'view_profile', name='bio-view_profile'), | |
11 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'), | |
12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'), | |
13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), | |
14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'), | |
15 ) |