1.在urls.py文件中导入 from django.urls import re_path,配置路由的时候,使用re_path,如果使用path是没有效果的 2. 在views.py文件中, 3.在html文件中,访问路由