urls.py 559 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.conf.urls import url
  4. from . import views
  5. urlpatterns = [
  6. url(r'^$', views.loan_list, name='loan-list'),
  7. url(r'^items/list$', views.item_list, name='item-list'),
  8. url(r'^items/(?P<pk>[0-9]+)/borrow$', views.item_borrow, name='item-borrow'),
  9. url(r'^(?P<pk>[0-9]+)/return$', views.loan_return, name='loan-return'),
  10. url(r'^(?P<pk>[0-9]+)/transfer$', views.loan_transfer, name='loan-transfer'),
  11. url(r'^(?P<pk>[0-9]+)$', views.loan_detail, name='loan-detail'),
  12. ]