O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Following and Commenting

The main idea behind our application is to provide a platform for users to share their thoughts via tweets. Just letting the user create a new tweet is only one part of it, and the application is said to be incomplete if users are not able to interact with the existing tweet. In this chapter, we will do the other part, which is enabling users to follow a particular user and comment on an existing tweet. You will also learn several new Django features while working through it.

In this chapter, you will learn about:

  • Letting users follow another user
  • Displaying the most followed user

Letting users follow another user

So far, our users are able to discover new tweets by browsing hashtags and user pages. Let's provide ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required