TA贡献1803条经验 获得超3个赞
定义一个页面模版hello.html
定义好url
定义一个view, 最后 render(request, 'hello.html', locals())
访问上面定义的url
TA贡献1802条经验 获得超6个赞
from django.shortcuts import renderdef home(request): return render(request, "home.html")
如果解决了您的问题请采纳!如果未解决请继续追问!
举报
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号