PageRenderTime 271ms CodeModel.GetById 110ms app.highlight 2ms RepoModel.GetById 108ms app.codeStats 0ms

/profiles/urls.py

http://django-profiles.googlecode.com/
Python | 28 lines | 17 code | 1 blank | 10 comment | 1 complexity | 8deaa2b18e9b030669514e0fec54157d MD5 | raw file
 1"""
 2URLConf for Django user profile management.
 3
 4Recommended usage is to use a call to ``include()`` in your project's
 5root URLConf to include this URLConf for any URL beginning with
 6'/profiles/'.
 7
 8"""
 9
10from django.conf.urls.defaults import *
11
12from profiles import views
13
14
15urlpatterns = patterns('',
16                       url(r'^create/$',
17                           views.create_profile,
18                           name='profiles_create_profile'),
19                       url(r'^edit/$',
20                           views.edit_profile,
21                           name='profiles_edit_profile'),
22                       url(r'^(?P<username>\w+)/$',
23                           views.profile_detail,
24                           name='profiles_profile_detail'),
25                       url(r'^$',
26                           views.profile_list,
27                           name='profiles_profile_list'),
28                       )