from django.contrib import admin from django.urls import path, include from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'user_list', views.UserListViewSet) urlpatterns = [ path('', include('djoser.urls')), path('', include('djoser.urls.authtoken')), path('', include(router.urls)), ]