<filename>backend/api/profiles/urls.py
from django.urls import path

from .views import ProfileRetrieveAPIView

app_name = 'profiles'
urlpatterns = [
    path('profiles/<str:username>', ProfileRetrieveAPIView.as_view()),
]

<filename>backend/api/profiles/urls.py
from django.urls import path

from .views import ProfileRetrieveAPIView

app_name = 'profiles'
urlpatterns = [
    path('profiles/<str:username>', ProfileRetrieveAPIView.as_view()),
]
