from django.urls import path from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns = [ path('register', views.UserRegisterAPIView, name = 'UserRegister'), path('login', obtain_auth_token, name = 'UserLogin'), path('logout', views.UserLogoutAPIView, name = 'UserLogout'), path('activate//', views.UserActivationAPIView, name = 'UserActivation'), ]