from django.urls import path from .views import * urlpatterns = [ path('getdepartments', GetDepartment.as_view(), name= "GetDepartment") ]