<filename>profiles_api/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register('view-set', views.Viewset, basename='view-set')
router.register('profiles', views.UserProfileViewset)

urlpatterns = [
    path('api-view', views.ApiView.as_view()),
    path('', include(router.urls)),
]
<filename>profiles_api/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register('view-set', views.Viewset, basename='view-set')
router.register('profiles', views.UserProfileViewset)

urlpatterns = [
    path('api-view', views.ApiView.as_view()),
    path('', include(router.urls)),
]