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

  • Django Project Blueprints
  • Asad Jibran Ahmed
  • 201字
  • 2021-07-16 10:37:46

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
主站蜘蛛池模板: 徐闻县| 乌兰浩特市| 邹平县| 湖北省| 田东县| 常州市| 甘泉县| 靖江市| 纳雍县| 阿拉善左旗| 昌都县| 安龙县| 轮台县| 交口县| 华亭县| 济阳县| 凌源市| 都江堰市| 天气| 乌拉特前旗| 张家口市| 吉林省| 贵阳市| 英山县| 绿春县| 平定县| 乌海市| 行唐县| 科尔| 宝清县| 马边| 九江县| 玉山县| 铜山县| 文安县| 称多县| 巴东县| 新平| 聂拉木县| 聊城市| 额敏县|