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

Sharing Bookmarks on the Main Page


So far, our users are able to discover new bookmarks by browsing tag and user pages. Let's provide a new method for users to share and discover new bookmarks. When saving a bookmark, we will give users the option of sharing this bookmark on the main page of our application. When a bookmark is shared, other users will be able to vote for the bookmark if they like it. We will also create a page where users can see the popular bookmarks by votes. This feature is important for our application, because it will change the main page from a basic welcome page to a frequently-updated list of bookmarks where users will be able to find new and interesting content.

Our strategy for implementing this feature consists of the following steps:

  1. We will start by creating a data model for storing bookmarks that are shared on the main page. This model will keep track of various pieces of information related to the shared bookmark.

  2. We will modify the bookmark submission form so...