官术网_书友最值得收藏!

Requirements

For any complex application, it is always a good idea to know what features we need to work on before we jump into coding. Let's look at what we want to create in this chapter.

We want to have a Django-based link sharing and discussion site like Hacker News. The site should have user accounts, allow users to share links, have a page where these links are listed in some defined order, and allow users to vote and comment on those links.

Additionally, we'd like to have safeguards against spammers and malicious users who would degrade the content quality of our site if left unchecked.

In a list form, here are the features that we want our application to provide:

  • User registration and authentication (already provided in the code pack)
  • Link submission by users
  • Voting on links submitted by other users
  • Commenting on the submissions and replying to comments by other users
  • An algorithm to rank the submitted links in some defined order that depends on a number of factors including the votes for that link, number of comments, and age of the submission
  • A way to disallow spammers from creating scripts that can automatically flood our site with submissions
主站蜘蛛池模板: 清镇市| 武隆县| 民和| 贵溪市| 突泉县| 石渠县| 三门峡市| 海阳市| 山阴县| 织金县| 广元市| 阳谷县| 鄂尔多斯市| 淳安县| 阿尔山市| 台湾省| 林州市| 喀喇沁旗| 龙州县| 临城县| 休宁县| 武穴市| 石嘴山市| 红安县| 丘北县| 扎鲁特旗| 龙口市| 新丰县| 云南省| 房产| 龙泉市| 札达县| 资中县| 青阳县| 饶平县| 潢川县| 衡东县| 邵阳市| 资溪县| 蒙城县| 赤城县|