1.由于不支持博客首页到文章详情页的跳转,只能打开第一篇文章的详情页
2.所以需要做以下工作:
设计文章详情页的url,完善视图函数逻辑,实现首页跳转
/blog/detail =>不能指定某一篇文章
/blog/detail/1 => 博客唯一id唯1的文章
/blog/detail/2 => 博客唯一id唯2的文章
/blog/detail/3 => 博客唯一id唯3的文章
/blog/detail/......
获取URL路径参数:<>
页面跳转:href指定html
3.

4.view.py

5.路由

以上。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。