1👍
✅
you need to add your views to urls.py
and link the URLs with their views.
from django.urls import path
from <your_view_file> import views
urlpatterns = [
path('login', views.<your_login_view>)
]
Very basically assignment between URLs and functions is like this. Of course, you need to write your register and login functions. Check here for a tutorial, it includes authentication basics, too. Also, I recommend DRF, so check this link for a basic understanding of authentication and permissions.
Source:stackexchange.com