from django.urls import path from . import views urlpatterns = [ path('todo/', views.TodoViewSet.as_view({'get': 'list'})), ]