30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
from django.contrib.auth import views as auth_views
|
|
from django.urls import path
|
|
from django.views.generic import TemplateView
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path("", views.HomePageView.as_view(), name="index"),
|
|
path("accounts/signup/", views.SignupView.as_view(), name="signup"),
|
|
path("accounts/login/", auth_views.LoginView.as_view(), name="login"),
|
|
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
|
|
path(
|
|
"accounts/password_change/",
|
|
views.PasswordChangeView.as_view(),
|
|
name="password_change",
|
|
),
|
|
path(
|
|
"accounts/password_reset/",
|
|
views.PasswordResetView.as_view(),
|
|
name="password_reset",
|
|
),
|
|
path(
|
|
"accounts/reset/<uidb64>/<token>/",
|
|
views.PasswordResetConfirmView.as_view(),
|
|
name="password_reset_confirm",
|
|
),
|
|
path("accounts/settings/", views.AccountView.as_view(), name="account_settings"),
|
|
path("accounts/delete/", views.AccountDeleteView.as_view(), name="account_delete"),
|
|
path("legal/", TemplateView.as_view(template_name="privacy.html"), name="legal"),
|
|
]
|