六、文章详情、点赞、评论

BBS论坛  文章详情、点赞、评论

BBS论坛  文章详情、点赞、评论

BBS论坛  文章详情、点赞、评论

 

 文章详情页面:

def article_detail(request, username, article_id):
    # user_obj  = models.UserInfo.objects.filter(username=username)
    article_obj = models.Article.objects.filter(pk=article_id).first()
    blog = models.Blog.objects.filter(userinfo__username=username).first()
    comment_list = models.Comment.objects.filter(article_id=article_id)
    return render(request, 'article_detail.html', locals())
views.py 文章详情页

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2021-07-24
  • 2022-12-23
  • 2018-06-05
  • 2018-06-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案