如前述,无需使用任何特定于comment的视图,但是需要修改posts read视图才能输出所有评论并包括允许人们发表评论的表单。
And as mentioned, we don't need any comment-specific views, but we need to modify the posts read view to output any comments and include the form to let people post comments.
图 1 给出一个取自 Sam Ruby 的 “Intertwingly” 博客的页面示例,其中有一篇文章、一条已经发表的评论和用来发表评论的表单。
Figure 1 is an example of a weblog page with an entry, one posted comment, and the form for posting further comments, taken from Sam Ruby's "Intertwingly" weblog.
同样是在这个表单上,您还可以将blog条目项的状态设置为Draft或Published,这样就可以分别允许或禁止对该项发表评论;还可以设置张贴风格:plain text或Rich text。
Also on this form, you can set the status of the blog entry as Draft or Published, allow or disallow comments for the entry, and set the Posting style — plain text or Rich text.
应用推荐