路由定义 proj3中的urls.py中: index中urls.py中: index中的views.py中: 路由变量的设置 urls.py path('<year>/<int:month>/<slug:day>', views.myvariable) views.py