Django: Stock Management System | Python Web Assignment Help | Codersarts

Updated: Jun 1, 2020

Django is a high-level Python web development framework. It is used to create a secure web application in python. If you are looking for any project assignment related help then you can contact us and get any assignment related help immediately.

Our expert is well educated and providing help when you need it.

In this blog, we will go through the front view of the "Stock Management App".

Front Views of Stock Management App


Open editor: pycharm


Create project “stock” using

>django-admin startproject stock


Create app “app” after change directory to “stock”

./ems> python startapp app


Creating superuser for admin

>python createsuperuser

Enter admin username, password


Apply two-step migrations

>python makemigrations
>python migrate


Run using

>python runserver

As per the above steps, you can create another app that I need to create this app.

Here some screenshots of the output result.

Here code overview:

from django.contrib import admin
from django.urls import path, include

urlpatterns = [ path('admin/',, path('', include("app.urls")), ]

from django.db import models

# Create your models here.

	("1", "Available"),
	("2", "Not Available")

class Brand(models.Model):
	name = models.CharField(max_length=255)
	status = models.CharField(max_length=10, choices=CHOICES)

	def __str__(self):

class Category(models.Model):
	name = models.CharField(max_length=255)
	status = models.CharField(max_length=10, choices=CHOICES)

	def __str__(self):

class Product(models.Model):
	brand = models.ForeignKey(Brand, on_delete=models.CASCADE)
	category = models.ForeignKey(Category, on_delete=models.CASCADE)

	name = models.CharField(max_length=255)
	code = models.CharField(max_length=10)
	# image = models.ImageField(upload_to="media/product/images/")
	quantity = models.IntegerField()
	rate = models.FloatField(max_length=100)
	status = models.CharField(max_length=10, choices=CHOICES)

	def __str__(self):

class Order(models.Model):
	date = models.DateTimeField(auto_now_add=True)
	sub_total = models.FloatField(max_length=100)
	vat = models.FloatField(max_length=100)
	total_amount = models.FloatField(max_length=100)
	discount = models.FloatField(max_length=100)
	grand_total = models.FloatField(max_length=100)
	paid = models.FloatField(max_length=100)
	due = models.FloatField(max_length=100)
	payment_type = models.CharField(max_length=100)
	payment_status = models.IntegerField()
	status = models.IntegerField()

class OrderItem(models.Model):
	order_id = models.ForeignKey(Order, on_delete=models.CASCADE)
	product_id = models.ForeignKey(Product, on_delete=models.CASCADE)

	quantity = models.IntegerField()
	rate = models.FloatField(max_length=100)
	total = models.FloatField(max_length=100)
	status = models.IntegerField()

If you need any project Assignment related to Django, then you can contact us at the below address:

Contact Us

Tel: (+91) 0120  4118730  

Time :   10 : 00  AM -  08 : 00 PM IST 

Registered address: G-69, Sector 63, 

 Noida - 201301, India

We Provide Services Across The different countries

USA    Australia   Canada   UK    UAE    Singapore   New Zealand    Malasia   India   Ireland   Germany

CodersArts is a Product by Sofstack Technology Solutions Pvt. Ltd.

  • CodersArts | Linkedin
  • Instagram