Book Image

Learning Website Development with Django

Book Image

Learning Website Development with Django

Overview of this book

Table of Contents (18 chapters)
Learning Website Development with Django
Credits
About the Author
About the Reviewers
Preface
Index

Commenting on Bookmarks


Voting on bookmarks is one way for our users to express their opinions. How about we give users more flexibility in expressing opinions by letting them also comment on bookmarks? Comments will be an excellent method for users to discuss their interests amongst each other and make new friends. In this section, we will implement the commenting feature in our application.

The process of adding comments to a Django application consists of the following steps:

  • Enable the comments application and create its models in the database.

  • Use a set of template tags provided by the comments application to display a comment form and a list of comments on a page.

  • Create templates for the comment submission form and the page that appears after successfully posting a comment.

Django makes implementing a complex feature such as commenting extremely easy as you will see. After going through this section, you will be able to add comments to any Django application with ease.

Enabling the Comments...