urls.py 245 B

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