init
This commit is contained in:
15
accounts/urls.py
Normal file
15
accounts/urls.py
Normal file
@ -0,0 +1,15 @@
|
||||
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'),
|
||||
]
|
Reference in New Issue
Block a user