2022-06-10 11:52:54 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import path, include
|
|
|
|
|
|
|
|
from .views import login_view, public_view, logout_view, protected_view
|
|
|
|
|
|
|
|
urlpatterns = [
|
2022-06-10 12:02:29 +00:00
|
|
|
path("login/", login_view, name="accounts.login"),
|
|
|
|
path("logout/", login_view, name="accounts.logout"),
|
|
|
|
path("protected/", protected_view, name="accounts.protected"),
|
|
|
|
path("", public_view, name="accounts.public"),
|
2022-06-10 11:52:54 +00:00
|
|
|
]
|