annotate gpp/bio/urls.py @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents ab7830b067b3
children 7ddd60164245
rev   line source
gremmie@1 1 """urls for the bio application"""
gremmie@1 2 from django.conf.urls.defaults import *
gremmie@1 3
gremmie@1 4 urlpatterns = patterns('bio.views',
gremmie@1 5 url(r'^members/(?P<type>user|date)/page/(?P<page>\d+)/$',
gremmie@1 6 'member_list',
gremmie@1 7 name='bio-members_full'),
bgneal@149 8 url(r'^members/search/$', 'member_search', name='bio-member_search'),
gremmie@1 9 url(r'^me/$', 'my_profile', name='bio-me'),
gremmie@1 10 url(r'^view/(?P<username>\w{1,30})/$', 'view_profile', name='bio-view_profile'),
gremmie@1 11 url(r'^edit/$', 'edit_profile', name='bio-edit_profile'),
bgneal@29 12 url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'),
gremmie@1 13 url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'),
bgneal@138 14 url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'),
gremmie@1 15 )
gremmie@1 16
gremmie@1 17 urlpatterns += patterns('django.views.generic.simple',
gremmie@1 18 url(r'^members/$',
gremmie@1 19 'redirect_to',
gremmie@1 20 {'url': '/profile/members/user/page/1/'},
gremmie@1 21 name='bio-members'),
gremmie@1 22 )
gremmie@1 23