Mercurial > public > sg101
comparison gpp/bio/urls.py @ 289:0dd8989abef2
Fix regexes for usernames in various urls.py files to match valid Django usernames
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 23 Dec 2010 23:36:53 +0000 |
parents | 7ddd60164245 |
children | ddd69a8e07c7 |
comparison
equal
deleted
inserted
replaced
288:4ba879ccdc62 | 289:0dd8989abef2 |
---|---|
1 """urls for the bio application""" | 1 """urls for the bio application""" |
2 from django.conf.urls.defaults import * | 2 from django.conf.urls.defaults import * |
3 | 3 |
4 urlpatterns = patterns('bio.views', | 4 urlpatterns = patterns('bio.views', |
5 url(r'^members/(?P<type>user|date)/$', | 5 url(r'^members/(?P<type>user|date)/$', |
6 'member_list', | 6 'member_list', |
7 name='bio-member_list'), | 7 name='bio-member_list'), |
8 url(r'^members/search/$', 'member_search', name='bio-member_search'), | 8 url(r'^members/search/$', 'member_search', name='bio-member_search'), |
9 url(r'^me/$', 'my_profile', name='bio-me'), | 9 url(r'^me/$', 'my_profile', name='bio-me'), |
10 url(r'^view/(?P<username>\w{1,30})/$', 'view_profile', name='bio-view_profile'), | 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'), | 11 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'), |
12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'), | 12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'), |
13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), | 13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), |
14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'), | 14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'), |
15 ) | 15 ) |