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('', UserView.as_view()), path('/edit', UserEdit.as_view()), ]