from django.urls import include, path from .views import UsersAPI urlpatterns = [ path('auth/', include('dj_rest_auth.urls')), path('auth/api_user/', UsersAPI.as_view()), path('auth/register/', include('dj_rest_auth.registration.urls')) ]