<filename>accounts/urls.py
"""
This module contains our mapping of URL path expressions to Django views for the "accounts" application.
"""
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView

from . import views

# URL namespace for this application.
app_name = 'accounts'

# URL patterns to be matched.
urlpatterns = [
    path('login/', LoginView.as_view(template_name='accounts/login.html'), name="login"),
    path('profile', views.profile, name='profile'),
    path('settings', views.settings, name='settings'),
    path('privacy', views.privacy, name='privacy'),
    path('logout/', LogoutView.as_view(template_name='accounts/login.html'), name='logout'),
]

<filename>accounts/urls.py
"""
This module contains our mapping of URL path expressions to Django views for the "accounts" application.
"""
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView

from . import views

# URL namespace for this application.
app_name = 'accounts'

# URL patterns to be matched.
urlpatterns = [
    path('login/', LoginView.as_view(template_name='accounts/login.html'), name="login"),
    path('profile', views.profile, name='profile'),
    path('settings', views.settings, name='settings'),
    path('privacy', views.privacy, name='privacy'),
    path('logout/', LogoutView.as_view(template_name='accounts/login.html'), name='logout'),
]

This module contains our mapping of URL path expressions to Django views for the "accounts" application. # URL namespace for this application. # URL patterns to be matched.