• 配置Urls.py

        path('user/list/', views.user_list),
        path('user/add/', views.user_add),
    

    image-20220323114222665

  • 配置views.py

    def user_list(request):
        return HttpResponse("用户列表")
    
    def user_add(request):
        return HttpResponse("添加用户")
    

image-20220323114323004

  • 测试

image-20220323114356208

image-20220323114539059

image-20220323114557967

Q.E.D.


不爱写个人简介的人的简介