Chapter 2. Discuss – a Hacker News Clone

In this chapter, we'll be creating a web app similar to Hacker News or Reddit, where users can share and discuss links to web content. We'll call the application Discuss. To keep things simple, we'll be emulating the minimalistic look of Hacker News, which is text only and has a very simple interface. Reddit, on the other hand, is much more visually rich and has a lot of extra features that we won't be adding to our site.

Here's an outline of what we'll be covering in this chapter:

  • Allowing users to submit their own content
  • Allowing users to vote on content submitted by other users
  • Ranking the user-submitted content based on simple algorithms
  • Preventing spammers from abusing our site using captchas

Chapter code ...

Get Django Project Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.