配置首页
import test01.viewsurlpatterns = [re_path('^$',test01.views.index),]# 视图def index(request):return render(request,'index.html')
网页
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>首页</title></head><body><h1> 欢迎来到网站首页,点击下面可以跳转!</h1><a href="/test01/index/"> test01 首页 </a><a href="/test02/index/"> test02 首页 </a></body></html>
实现跳转

