(四)Django快速搭建簡易個人播客(評論功能)

配置url 編寫視圖函數 根據文章id獲取評論信息 class AddCommentsView(LoginRequiredMixin, View): """ 添加文章評論 """ def post(self, request, article_id): if not request.user.is_authenticated():
相關文章
相關標籤/搜索