10 lines
386 B
Python
10 lines
386 B
Python
from django.urls import path # type: ignore
|
|
from . import views
|
|
from django.contrib.auth.views import LogoutView
|
|
from django.contrib.auth.views import LoginView
|
|
|
|
urlpatterns = [
|
|
path('', views.home, name='home'),
|
|
path('logout/', LogoutView.as_view(), name='logout'),
|
|
path('login/', LoginView.as_view(template_name='accounts/login.html', next_page='home'), name='login'),
|
|
] |