urls.py 316 B

123456789101112
  1. from django.conf.urls import url
  2. from . import views
  3. from rest_framework_bulk.routes import BulkRouter
  4. from api.task.views import TaskView
  5. router = BulkRouter()
  6. router.register(r'task', TaskView,base_name='task')
  7. urlpatterns = [
  8. url(r'^$', views.index, name='index'),
  9. ]
  10. urlpatterns = urlpatterns + router.urls