Stock Management System Project in Django with Source Code
The Stock Management System Project is created based on Python, Django, and SQLITE3 Database.
Stock Management System Project in Django with Source Code
The Stock Management System Project is created based on Python, Django, and SQLITE3 Database.
This project is ideal for measuring your business, and it is appropriate for any form of business that sells products rather than services.
This system generates a detailed list of all reviews written by the administrator.

A corporation or business may use the system to track their products/stocks, sales transactions, and other related transactions.
Reports such as the Sales Report, Return of Goods Report, and others are produced by this project.
Stock Management System Project in Django: Admin Features
- Login Page — The page where the system administrator enters their system credentials in order to gain access to the system’s administrative side.
- Manage Product — This is the page where an administrator can add, update, and delete product information.
- Manage Brand — This is the page where an administrator can add, update, and delete brand information.
- Categories Management — This is the page where an administrator can add, update, and categories information.
- Manage Order– This is the page where an administrator can add, update, view order and delete order information.
- Manage Report — The page where admin can view the daily sales report.
How to Create a Stock Management System Project in Django?
Here are the steps on how to create a Stock Management System Project in Django with Source Code.
- Step 1: Open file.
Open “PyCharm professional” after that click “file” and click “new project”.
- Step 2: Choose Django.
Next, after click “new project”, choose “Django” and click.
- Step 3: Select file location.
Then, select a file location wherever you want.
- Step 4: Create application name.
After that, name your application.
- Step 5: Click create.
Lastly, finish creating project by clicking “create” button.
- Step 6: Start Coding.
Finally, we will now start adding functionality to our Django Framework by adding some functional codes.
Functionality and Codes of the Stock Management System Project in Django
- Create template for the navigation bar in Stock Management System Project Project in Django.
In this section, we will learn on how create a templates for the navigation bar.
To start with, add the following code in your navbar.html under the folder of /templates/modules.
<nav class="navbar navbar-toggleable-lg" style="background-color: black; box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.2), 0 2px 20px 0 rgba(0, 0, 0, 0.19)">
<a class="navbar-brand" href="{% url 'index' %}">STOCK MANAGEEMNT SYSTEM</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard' %}"><i class="fa fa-list-alt" aria-hidden="true"></i> Dashboard</a>
</li>
<li class="nav-item" id="navBrand">
<a class="nav-link" href="{% url 'products' %}"><i class="fa fa-gamepad" aria-hidden="true"></i></i> Products</a>
</li>
<li class="nav-item" id="navBrand">
<a class="nav-link" href="{% url 'brand' %}"><i class="fa fa-envira" aria-hidden="true"></i> Brands</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'categories' %}"><i class="fa fa-list" aria-hidden="true"></i> Categories</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'orders' %}"><i class="fa fa-cubes" aria-hidden="true"></i></i> Orders</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'report' %}"><i class="fa fa-line-chart" aria-hidden="true"></i></i> Report</a>
</li>
</ul>
{% if user.is_authenticated %}
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user" aria-hidden="true"></i>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<div class="dropdown-item" style="color: cornflowerblue">{{ user|capfirst }}</div>
<a class="dropdown-item" href="#">Settings</a>
<a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</ul>
</li>
</ul>
{% endif %}
</div>
</nav>
- Create template for the order in Stock Management System Project Project in Django.
In this section, we will learn on how create a templates for the order.
To start with, add the following code in your order.html under the folder of /templates/modules.
{% extends 'modules/base.html' %}
{% load static %}
{% block content %}
<div class="container">
<div class="row vertical">
<div class="col-sm-12">
<div class="breadcrumb">
<p><a href="{% url 'index' %}">Home</a> / Orders </p>
</div>
<div class="card card-outline-secondary">
<div class="card-header">
<h3 class="mb-0 text-center">Manage Orders</h3>
</div>
<div class="card-block">
<form class="form form-horizontal" method="post" action="" id="createOrderForm">
<div class="form-group">
<label for="orderDate" class="col-sm-2 control-label">Order Date</label>
<div class="col-sm-12">
<input type="text" class="form-control" id="orderDate" name="orderDate"
autocomplete="off"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="clientName" class="col-sm-2 control-label">Client Name</label>
<div class="col-sm-12">
<input type="text" class="form-control" id="clientName" name="clientName"
placeholder="Client Name" autocomplete="off"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="clientContact" class="col-sm-2 control-label">Client Contact</label>
<div class="col-sm-12">
<input type="text" class="form-control" id="clientContact" name="clientContact"
placeholder="Contact Number" autocomplete="off"/>
</div>
</div>
<table class="table" id="productTable">
<thead>
<tr>
<th width="30%">Product</th>
<th width>Rate</th>
<th width="15%">Quantity</th>
<th width="20%">Total</th>
<th></th>
</tr>
</thead>
<tbody>
<tr id="" class="">
<td>
<div class="form-group">
<select class="form-control" name="productName[]"
id="productName<?php echo $x; ?>"
onchange="">
<option value="">SELECT</option>
</select>
</div>
</td>
<td>
<input type="text" name="rate[]" id="rate<?php echo $x; ?>"
autocomplete="off"
disabled="true" class="form-control"/>
<input type="hidden" name="rateValue[]" id="rateValue<?php echo $x; ?>"
autocomplete="off" class="form-control"/>
</td>
<td>
<div class="form-group">
<input type="number" name="quantity[]" id="quantity<?php echo $x; ?>"
onkeyup="" autocomplete="off"
class="form-control" min="1"/>
</div>
</td>
<td>
<input type="text" name="total[]" id="total<?php echo $x; ?>"
autocomplete="off"
class="form-control" disabled="true"/>
<input type="hidden" name="totalValue[]" id="totalValue<?php echo $x; ?>"
autocomplete="off" class="form-control"/>
</td>
<td>
<button class="btn btn-default removeProductRowBtn" type="button"
id="removeProductRowBtn" onclick="">
<i class="fa fa-trash" aria-hidden="true"></i></button>
</td>
</tr>
</tbody>
</table>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="subTotal" class="col-sm-6 control-label">Sub Amount</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="subTotal" name="subTotal"
disabled="true"/>
<input type="hidden" class="form-control" id="subTotalValue"
name="subTotalValue"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="vat" class="col-sm-6 control-label">VAT 13%</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="vat" name="vat"
disabled="true"/>
<input type="hidden" class="form-control" id="vatValue"
name="vatValue"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="totalAmount" class="col-sm-6 control-label">Total Amount</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="totalAmount"
name="totalAmount" disabled="true"/>
<input type="hidden" class="form-control" id="totalAmountValue"
name="totalAmountValue"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="discount" class="col-sm-6 control-label">Discount</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="discount" name="discount"
onkeyup="discountFunc()" autocomplete="off"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="grandTotal" class="col-sm-6 control-label">Grand Total</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="grandTotal"
name="grandTotal" disabled="true"/>
<input type="hidden" class="form-control" id="grandTotalValue"
name="grandTotalValue"/>
</div>
</div> <!--/form-group-->
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="paid" class="col-sm-6 control-label">Paid Amount</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="paid" name="paid"
autocomplete="off" onkeyup="paidAmount()"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="due" class="col-sm-6 control-label">Due Amount</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="due" name="due"
disabled="true"/>
<input type="hidden" class="form-control" id="dueValue"
name="dueValue"/>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="clientContact" class="col-sm-6 control-label">Payment
Type</label>
<div class="col-sm-9">
<select class="form-control" name="paymentType" id="paymentType">
<option value="">SELECT</option>
<option value="1">Cheque</option>
<option value="2">Cash</option>
<option value="3">Credit Card</option>
</select>
</div>
</div> <!--/form-group-->
<div class="form-group">
<label for="clientContact" class="col-sm-6 control-label">Payment
Status</label>
<div class="col-sm-9">
<select class="form-control" name="paymentStatus" id="paymentStatus">
<option value="">SELECT</option>
<option value="1">Full Payment</option>
<option value="2">Advance Payment</option>
<option value="3">No Payment</option>
</select>
</div>
</div>
<div class="form-group submitButtonFooter" style="margin-top: 50px">
<div class="col-sm-offset-2 col-sm-10">
<button type="button" class="btn btn-default" onclick="addRow()"
id="addRowBtn" data-loading-text="Loading..."><i
class="glyphicon glyphicon-plus-sign"></i> Add Row
</button>
<button type="submit" id="createOrderBtn" data-loading-text="Loading..."
class="btn btn-success"><i
class="glyphicon glyphicon-ok-sign"></i> Save Changes
</button>
<button type="reset" class="btn btn-default" onclick="resetOrderForm()">
<i class="glyphicon glyphicon-erase"></i> Reset
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<!--/card-block-->
</div>
</div>
</div>
</div>
{% endblock %}
{% block script %}
<script src="{% static 'js/order.js' %}"></script>
{% endblock %}
📌 Download the Complete Source Code for Stock Management System in Django here: ⬇️⬇️⬇️
Stock Management System in Different Programming Languages
- **Stock Management System Project in Laravel with Source Code**
- **Stock Management System in PHP with Source Code**
- **Stock Management System Project in Java with Source Code**
- **Stock Management System Project in C with Source Code**
- **Stock Management System in Python with Source Code**
Conclusion
The Stock Management System in Django is highly customizable and adaptable to meet specific requirements.
I also include the Stock Management System in different programming languages so that you can explore it further.
If you find this article valuable, please consider leaving a comment below and share your thoughts.
Your feedback will not only helps us to improve our content but also benefits others in the community by providing diverse insights and experiences.
Itsourcecode.com🚀
Thank you for being a part of the Itsourcecode community!
Before you leave, please consider the following:
I would appreciate it if you could show your support by clapping 50 times and following the author.
Follow us on [**Pinterest**]
Follow us on [KO-FI]
Follow us on [**Facebook**]
메타데이터
- post_id
- 19cda8abfd82
- slug
- stock-management-system-project-in-django-with-source-code-19cda8abfd82
- url
- https://medium.com/@pies052022/stock-management-system-project-in-django-with-source-code-19cda8abfd82
- canonical_url
- https://medium.com/@pies052022/stock-management-system-project-in-django-with-source-code-19cda8abfd82
- author_url
- https://medium.com/@pies052022
- status
- ok
- fetched_at
- 2026-07-09 13:13:48