News Portal and CMS

News portal with a staff CMS: reporter, editor and admin roles, review and reject workflow, scheduled publishing, featured and breaking news, trending, comments with moderation, RSS and newsletter list. Python, Flask, Bootstrap, SQLite.

  • Price: ₹1,999
  • Category: Web App
  • Technology: Python, Flask, Bootstrap 5, SQLite, Chart.js
  • Includes: Source code + database
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

This is a full news website that runs on a normal PC. The public site has a home page (breaking ticker, a hero story, featured stories, latest news, trending this week), section pages, tag pages, search, story pages with reading time, related stories and a comment form, a newsletter box and an RSS feed. Readers need no login. Staff log in at /login. A reporter sees only own stories and can edit own drafts and rejected stories. An editor sees every story, works through the review queue (publish now, schedule for a date and time, or reject with a comment that the reporter sees), marks featured (at most 4) and breaking (24-hour ticker) stories, takes stories down and moderates comments. The admin also manages sections, staff accounts (switch off, reset password), the newsletter list (CSV) and the audit log. A scheduled story goes live by itself when its time comes. Security: hashed passwords, a lock after 5 wrong passwords, CSRF tokens in every form (also the public ones), role checks on every page, all user text escaped (also a script typed into a headline or a comment), 15-minute idle logout. 28 rule tests and 217 web checks are included.

Modules

  1. Public news site: Home page with breaking ticker, hero and featured stories, latest news and trending; section pages and tag pages with paging; search; story page with reading time and related stories.
  2. Reader features: Comments (2 to 500 characters, shown after moderation, hidden spam-trap field and a two-link rule), newsletter sign-up, RSS 2.0 feed.
  3. Story editor: Headline, summary, text with simple formatting (sub-headings and lists), section, up to 5 tags, cover style, SEO title and description; a version is saved on every save.
  4. Editorial workflow: Draft, review, scheduled, published, rejected. Reporters send for review; editors publish, schedule (1 minute to 90 days ahead), reject with a comment or take down.
  5. Featured, breaking, trending: Up to 4 featured stories; breaking stories run in the ticker for 24 hours; trending uses the reads of the last 7 days.
  6. Comment moderation: Pending, approved and spam tabs; approve, mark as spam or delete; the pending count shows in the menu.
  7. Administration: Sections with colour and icon; editor and reporter accounts with first password shown once, switch off, reset; newsletter list with CSV; audit log.
  8. Dashboard: Status tiles, reads per day for 14 days, stories by status, most read stories, review queue (editor) or sent-back stories (reporter).
  9. Security: Hashed passwords, login lock, CSRF, role checks, escaping of all user text, 15-minute idle logout, SQL with placeholders.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 2 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 2 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. Your browser opens http://127.0.0.1:5000 by itself. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. The public news site opens first. For the staff CMS open /login: admin / admin123, editor1 / demo123, reporter1 / demo123.
  6. As reporter1 write a story and send it to review; as editor1 reject or publish it from the Review queue, schedule one and moderate Comments; as admin add a section and open the Audit log.

More Web App projects