In this post we see how to manually write the code for the user Registeration , Login and Logout. firstly we have to start a project and than start an app: django-admin startproject user-authentication $ cd user-authentication $ python manage.py startapp accounts Once we have created an app we have to add this app in the INSTALLED_APPS in settings.py. Than we have to add the path of the accounts app: "main project urls.py" from django.contrib import admin from django.urls import path,include from django.conf import settings urlpatterns = [ path( 'accounts/' ,include( 'accounts.urls' )), path( 'admin/' , admin.site.urls), ] if settings.DEBUG: urlpatterns=urlpatterns+static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) ...