1
0
Fork 0

Add basic login/logout

This commit is contained in:
Vili Sinervä 2024-11-24 16:11:22 +02:00
parent 28bbf51d21
commit 8f3b1f817a
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
5 changed files with 63 additions and 3 deletions

View file

@ -13,9 +13,11 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from notesapp import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index, name='index'),
path('accounts/login/', views.login_view, name='login'),
path('accounts/logout/', views.logout_view, name='logout'),
]