21 lines
No EOL
1 KiB
Python
21 lines
No EOL
1 KiB
Python
# webapp/auth/urls.py
|
|
|
|
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.register, name='register'),
|
|
path('login/', views.login, name='login'),
|
|
path('logout/', views.logout, name='logout'),
|
|
# Activation de compte par lien tokenisé
|
|
path('activate/<uidb64>/<token>/', views.activate, name='activate'),
|
|
path('profile/view/<int:user_id>/', views.another_profile, name='another_profile'),
|
|
path('complete-profile/', views.complete_profile, name='complete_profile'),
|
|
path('profile/', views.profile, name='profile'),
|
|
path('profile/update', views.profile_update, name='profile_update'),
|
|
path('profile/account/update', views.account_update, name='account_update'),
|
|
path('profile/account/mycourses', views.my_courses, name='user_courses'),
|
|
path('profile/page/post', views.create_post, name='profile_create_post'),
|
|
path('profile/<path:page>', views.profile, name='profile_page'),
|
|
path('profile/<int:user_id>/<path:page>/', views.profile, name='profile_id_page'),
|
|
] |