urls.py 360 B

1234567891011
  1. from django.urls import path
  2. from .views.userlistview import UserListView, UserListLogin
  3. from .views.userview import UserView, UserEdit
  4. urlpatterns = [
  5. # 注册登录代码
  6. path('', UserListView.as_view()),
  7. path('login', UserListLogin.as_view()),
  8. path('<str:user_id>', UserView.as_view()),
  9. path('<str:user_id>/edit', UserEdit.as_view()),
  10. ]