/profiles/urls.py

http://django-profiles.googlecode.com/ · Python · 28 lines · 16 code · 1 blank · 11 comment · 1 complexity · 8deaa2b18e9b030669514e0fec54157d MD5 · raw file

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