from django.conf.urls import url from . import views from rest_framework_bulk.routes import BulkRouter from api.task.views import TaskView router = BulkRouter() router.register(r'task', TaskView,base_name='task') urlpatterns = [ url(r'^$', views.index, name='index'), ] urlpatterns = urlpatterns + router.urls