123456789101112131415161718 |
- from django.urls import path
- from .views.userexportview import UserExportView
- from .views.userjoinview import UserJoinView
- from .views.userlistview import UserListView, UserListLogin
- from .views.userquitview import UserQuitView
- from .views.userview import UserView, UserEdit
- urlpatterns = [
- # 注册登录代码
- path('', UserListView.as_view()),
- path('login', UserListLogin.as_view()),
- path('export', UserExportView.as_view()),
- path('<str:user_id>', UserView.as_view()),
- path('<str:user_id>/edit', UserEdit.as_view()),
- path('<str:user_id>/join', UserJoinView.as_view()),
- path('<str:user_id>/quit', UserQuitView.as_view())
- ]
|