urls.py 710 B

123456789101112131415161718
  1. # coding: utf-8
  2. from __future__ import print_function
  3. from __future__ import absolute_import
  4. from __future__ import division
  5. from __future__ import unicode_literals
  6. from django.conf.urls import url
  7. from django.views.generic import RedirectView
  8. from . import views
  9. urlpatterns = [
  10. url(r'^$', RedirectView.as_view(url="/", permanent=True), name="person_index"),
  11. url(r'^(?P<key>[^/]+)$', views.Person.as_view(), name="person"),
  12. url(r'^(?P<key>[^/]+)/edit_ldap$', views.EditLDAP.as_view(), name="person_edit_ldap"),
  13. url(r'^(?P<key>[^/]+)/edit_bio$', views.EditBio.as_view(), name="person_edit_bio"),
  14. url(r'^(?P<key>[^/]+)/edit_email$', views.EditEmail.as_view(), name="person_edit_email"),
  15. ]