Fake News Detection System Using Django and Machine Learning | Source Code
LIMITED TIME
Get Source Code ₹99
Real project UI Full source included

No live demo yet — message us for access

Our team shares demo access on WhatsApp within minutes

Fake News Detection System Using Django and Machine Learning

Complete final-year project source code with frontend, backend, database, and setup guide. Instant download after secure payment.

  • MACHINE-LEARNING Stack
  • Instant Download
Secure CCAvenue payment Instant download link WhatsApp support

Choose your plan

Source Code Only

Full ZIP with frontend, backend, database & documentation.

₹99 one-time
  • Complete project source files
  • Database script included
  • How-to-run guide

What's in your download

Review features, setup steps, and credentials before you pay.

Project Overview

Description, tech stack, and what is included

Full source Frontend + backend
Database .sql file
Setup guide README included

Fake News Detection is a Django web application that classifies news articles as Real or Fake using a hybrid machine learning model. The system uses TF-IDF vectorization with Logistic Regression and Random Forest for accurate fake news classification. Users can register, log in, check news by pasting text or article URLs, and view prediction history, analytics, and dashboard reports. The application also supports URL-based article extraction using BeautifulSoup and requests, model transparency with probability scores, admin management tools, staff dashboard access, and report visualization with charts. This project is ideal for demonstrating Django, machine learning, NLP, fake news detection, user authentication, admin panel development, and dashboard analytics in one complete web application

Technical snapshot

Project
Fake News Detection System Using Django and Machine Learning
Stack
MACHINE-LEARNING
Includes
Code, DB, README
License
Academic submission
Secure CCAvenue payment · Instant download · Need help? WhatsApp us

Admin Features

Modules and controls available to administrators

  • Django admin panel for staff and superusers
  • Manage all prediction results across all users
  • Search, filter, edit, and delete detection records
  • Filter records by user, input type, prediction result, and date
  • Staff dashboard with full cross-user visibility
  • View all users’ history, reports, and dashboard statistics
  • Filter reports by user ID and other criteria
  • Delete any visible record from staff queryset
  • Management commands for model training, demo data seeding, migrations, and superuser creation

User Features

What end users can do in this application

  • User registration with email and password
  • Secure login and logout system
  • Password reset with email support
  • Fake news detection from pasted news text
  • Fake news detection from article URL
  • Hybrid prediction using Logistic Regression and Random Forest
  • Confidence score and per-model probability display
  • Cleaned text preview for transparency
  • Optional country, India state, and news category selection
  • Personal dashboard with prediction history
  • Search and filter previous detection records
  • Delete own prediction records
  • Reports page with charts and analytics
  • Static About and Contact pages
  • Health check endpoint for application readiness

Other Features

Additional capabilities included in the project

  • Hybrid machine learning pipeline with ensemble probability averaging
  • TF-IDF text vectorization for feature extraction
  • NLP preprocessing using NLTK stopwords and lemmatization
  • URL article extraction using requests, BeautifulSoup, and lxml
  • URL authenticity heuristics for additional analysis
  • Country hint detection from URLs for reporting
  • Model artifact saving using joblib
  • Dashboard charts using matplotlib and seaborn
  • CSV-based training support for custom datasets
  • Dummy data generation using seed command
  • Environment variable support with python-dotenv
  • User-wise access control for privacy and security
  • Staff-level reporting and management system
  • Ready for local deployment and further production setup

How to Run

Step-by-step setup on your laptop or PC

  • Create a virtual environment
    python -m venv .venv
  • Activate the virtual environment
    Windows: .venv\Scripts\activate
    Linux/macOS: source .venv/bin/activate
  • Install dependencies
    pip install -r requirements.txt
  • Apply migrations
    python manage.py migrate
  • Train the machine learning model
    Demo dataset:
    python manage.py train_model --csv data/sample_news.csv
    Full dataset:
    python manage.py train_model
  • Optional: seed demo data
    python manage.py seed_data
    or
    python manage.py seed_data --user YOUR_USERNAME
  • Create admin account
    python manage.py createsuperuser
  • Run the development server
    python manage.py runserver
  • Open in browser
    Home: http://127.0.0.1:8000/
    Register: http://127.0.0.1:8000/register/
    Login: http://127.0.0.1:8000/login/
    Dashboard: http://127.0.0.1:8000/dashboard/
    Admin: http://127.0.0.1:8000/admin/

Login Credentials

Default demo accounts for testing after setup

This project does not include default login credentials.

  • Create admin account using:
    python manage.py createsuperuser
  • Normal users can register from:
    /register/

License

Usage terms for academic and personal projects

Related Tags

Search terms and categories for this source code

Fake News Detection System Using Django and Machine Learning Source Code Final Year MACHINE-LEARNING Project Ready-to-Run Code With Database File Plagiarism-Free Faculty Approved fake news detection django project machine learning project news classification fake news classifier real vs fake news python django app scikit-learn project NLP project TF-IDF vectorizer Logistic Regression Random Forest BeautifulSoup URL news detection admin dashboard reporting dashboard user authentication web application project