Gas Station Management System in Python using Django Free Source Code

Language

Gas Station Management System using Django in Python

This project is entitled Gas Station Management System. This is a web-based application developed in Python and Django Framework. This project provides an online and automated platform for Gas Station Businesses to manage their fuel inventory and sales transaction. The system stores the record of the fuel stock and automatically adds the added volume of fuel to the available volume on the specific petrol or fuel type. The application was also developed using the Bootstrap v5 Framework for the user interface. Aside from a pleasant user interface, this system consists of user-friendly features and functionalities.

About the Gas Station Management System

I developed this project using the following:

  • Python
  • Django
  • SQLite3
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Fontawesome
  • Bootstrap v5

This Gas Station Management System Project is accessible only to the Gas Station Management. This application requires the users to log in with their registered user credentials in order to gain access to the features and functionalities of the system. After successful login in the system, the user is required to populate first the Petrol Type List when using the system for the first time. It requires to be filled first because the Petrol Type Data are required and linked to the other list such as for adding stocks for each Petrol offered by the Gas Station. Users can simply add new stock by filling the required fields of the Stock-in Form Modal. The added volume that is successfully added to the stock will automatically be added to the available fuel volume. On this system, the management can record the sales transaction of their business. Each sales transaction's fuel volume is also subtracted from the available volume. The Gas Station Management System also generates the printable Daily Sales Report.

Features

  • Login and Registration
  • Home
    • Displays the Summary
  • Petrol Type Management
    • Add New Petrol Type
    • List All Petrol Types
    • View Petrol Type Details
    • Edit Petrol Type Details
    • Delete Petrol Type
  • Stock-In Management
    • Add New Petrol Volume/Stock
    • List All Stock-In Records
    • View Stock-In Details
    • Edit Stock-In Details
    • Delete Stock-In
  • Sales Management
    • Add New Sale Transaction
    • List All Sales Records
    • View Sale Details
    • Edit Sale Details
    • Delete Sale
  • Inventory Page
  • Generate Daily Sales Report
  • Print Daily Sales Report
  • Update User Profile
  • Update Account Password
  • Logout

Sample Snapshots

Home Page

Gas Station Management System

Petrol Type List

Gas Station Management System

Inventory Page

Gas Station Management System

Sale Transaction Details Modal

Gas Station Management System

Daily Sales Report Page

Gas Station Management System

Daily Sales Report - Print View

Gas Station Management System

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_gsms
  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 Gas Station Management System 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.

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
2 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.