Mercurial > public > sg101
comparison gpp/bio/urls.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | 74f04122295e |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 """urls for the bio application""" | |
2 from django.conf.urls.defaults import * | |
3 | |
4 urlpatterns = patterns('bio.views', | |
5 url(r'^members/(?P<type>user|date)/page/(?P<page>\d+)/$', | |
6 'member_list', | |
7 name='bio-members_full'), | |
8 url(r'^me/$', 'my_profile', name='bio-me'), | |
9 url(r'^view/(?P<username>\w{1,30})/$', 'view_profile', name='bio-view_profile'), | |
10 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'), | |
11 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), | |
12 ) | |
13 | |
14 urlpatterns += patterns('django.views.generic.simple', | |
15 url(r'^members/$', | |
16 'redirect_to', | |
17 {'url': '/profile/members/user/page/1/'}, | |
18 name='bio-members'), | |
19 ) | |
20 | |
21 | |
22 # vim: ts=4 sw=4 |