django-cats/cats/urls.py
Jan Dittberner 564a00d46d Finish login and registration flow
- add template for login page
- add logout URL
- display user information
2024-09-20 15:59:51 +02:00

12 lines
439 B
Python

# URL configuration for cats
from django.contrib.auth.views import LogoutView
from django.urls import path
from cats.views import CertificateLoginView, home_page, switch_language
urlpatterns = [
path("", home_page, name="home"),
path("switch-language", switch_language, name="switch_language"),
path("auth/login", CertificateLoginView.as_view(), name="login"),
path("auth/logout", LogoutView.as_view(), name="logout"),
]