11 lines
458 B
Python
11 lines
458 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(next_page='login'), name='logout'),
|
|
path('login/', LoginView.as_view(template_name='accounts/login.html', next_page='home'), name='login'),
|
|
path('register/', views.register, name='register'),
|
|
] |