12345678910111213 |
- from django.conf.urls import url
- from rest_framework_bulk.routes import BulkRouter
- from treeAndTable.views import DepartmentView, DeptAndJobView
- router = BulkRouter()
- router.register(r'job', DeptAndJobView)
- urlpatterns = router.urls
- urlpatterns += [
- url(r'^dept/', DepartmentView.as_view())
- ]
|