urls.py 359 B

1234567891011121314
  1. from django.conf.urls import url
  2. from rest_framework_bulk.routes import BulkRouter
  3. from treeAndTable.views import DepartmentView, DeptAndJobView,DeptJobUserView
  4. router = BulkRouter()
  5. router.register(r'job', DeptAndJobView)
  6. router.register(r'user', DeptJobUserView)
  7. urlpatterns = router.urls
  8. urlpatterns += [
  9. url(r'^dept/', DepartmentView.as_view())
  10. ]