News Portal - CMS in Python using Django Free Source Code

Language

Online News Portal Site using Django in Python

This project is entitled Online News Portal Site. This is a web-based application developed in Python and Django Framework. The project is a simple Content Management System (CMS) for the News Publishing website. The application contains the features and functionalities that are commonly found in a news site. It has a pleasant user interface using the Newsbox Free Template. The project consists of user-friendly features and functionalities.

About the Online News Portal Site

I developed this project using the following:

  • Python
  • Django
  • SQLite3
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Newsbox Free Template
  • Fontawesome
  • Bootstrap v4

This Online News Portal Site Project is accessible to the public, the site management, and authors. Public visitors can explore the different news in different categories that are published by the authors. In this project, Admin Users have the privilege to access and manage the list of users/authors and the list of news categories. The said list can be only managed at Django's Admin Site. The registered authors on the site have the privilege to publish and manage their news posts. They are only allowed to update or delete the posts that they created and published. Anonymous users or visitors can explore only the published news or post on the website. They can also post a comment on each news. Posted Comments can be deleted only by the admin users.

Features

Admin-Side

  • Login and Logout
  • Home
    • Displays the 10 latest Published News
  • Category Management - (Admin Site Only)
    • Add New Category
    • List All Categories
    • Update Category Details
    • Delete Category
  • Users Management - (Admin Site Only)
    • Add New User/Author
    • List All Users/Authors
    • Update User/Author Details
    • Delete User/Author
  • Post Management
    • Add New Post
    • List All Posts
    • View Post Details
    • Update Post Details
    • Post a Comment
    • Delete Comment
    • Delete Post
  • Profile Details Page
  • Update Profile Details
  • Update Account Password

Author-Side

  • Login and Logout
  • Home
    • Displays the 10 latest Published News
  • List Published News By Category
  • View Published News
  • Add New Post
  • List Created Posts
  • Update created Post
  • Delete Post
  • Post a Comment on each News
  • Profile Details Page
  • Update Profile Details
  • Update Account Password

Public-Side

  • Home Page
  • List Latest Published News
  • List Published News By Category
  • View Published News
  • Post a Comment in each Published News

Sample Snapshots

Home Page

Online News Portal Site

Filtered Post by Category

Online News Portal Site

Login Page

Online News Portal Site

Post Form

Online News Portal Site

Post View Page

Online News Portal Site

The system source code is free to download on this project and only for educational purposes only. The source code is not that so tricky which means not that difficult to understand. Feel free to download and modify the source code the way you wanted.

How to Run

Download/Install the following

  • Python (I used v3.9.1)
  • PIP (for python modules installation)

Setup/Installation

  1. Download and Extract the provided source code zip file. (download button is located below)
  2. Open your Terminal/Command Prompt window. (make sure to add "python" and "pip" in your environment variables)
  3. Change the working directory to the extracted source code folder. i.e. cd C:\Users\Personal-23\Desktop\django_news
  4. Run the following commands:
    • pip install -r requirements.txt
    • python manage.py migrate
    • python manage.py runserver
  5. Keep the terminals open and running.
  6. Open a web browser and browse http://localhost:8000/ or http://127.0.0.1:8000/

Note: I might forget to list some other modules/libraries. Kindly Install the missing modules if any occurred.

Access Information for AdminSite

SuperUser
Username: admin
Password: admin123

http://127.0.0.1:8000/admin for the Django's Admin Site.

DEMO VIDEO

That's it! I hope this will help you with what you are looking for. Maybe you'll find this Online News Portal Site useful and can help you with your future Python Django Projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byYordy (not verified)on Wed, 10/05/2022 - 11:05

Does not load the login view. Any solution for this? Thanks
Submitted byTravex (not verified)on Fri, 02/17/2023 - 22:09

Nice Work

Add new comment