Files
Flagman/accounts/urls.py
Dmitriy 60b4e0e839 init
2025-06-23 01:24:34 +03:00

15 lines
660 B
Python

from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.home, name='home'),
path('register/', views.register, name='register'),
path('register/instructor/', views.register_instructor, name='register_instructor'),
path('profile/', views.profile, name='profile'),
path('profile/update/', views.profile_update, name='profile_update'),
path('login/', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
path('logout/', auth_views.LogoutView.as_view(template_name='accounts/logout.html'), name='logout'),
]