1234567891011 |
- from django.urls import path
- from .views.userlistview import UserListView, UserListLogin
- from .views.userview import UserView, UserEdit
- urlpatterns = [
- # 注册登录代码
- path('', UserListView.as_view()),
- path('login', UserListLogin.as_view()),
- path('<str:user_id>', UserView.as_view()),
- path('<str:user_id>/edit', UserEdit.as_view()),
- ]
|