0% found this document useful (0 votes)
76 views47 pages

Django-Based Online Auction System

The document outlines the design and implementation of an online auction system using Django, aimed at facilitating digital auctions for users to buy and sell products. It includes features such as user authentication, auction management, bidding systems, and an admin dashboard, while addressing limitations of existing auction platforms. The project emphasizes user-friendly access, security, and real-time updates, with a focus on enhancing the auction experience through modern technology.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views47 pages

Django-Based Online Auction System

The document outlines the design and implementation of an online auction system using Django, aimed at facilitating digital auctions for users to buy and sell products. It includes features such as user authentication, auction management, bidding systems, and an admin dashboard, while addressing limitations of existing auction platforms. The project emphasizes user-friendly access, security, and real-time updates, with a focus on enhancing the auction experience through modern technology.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ONLINE AUCTION SYSTEM USING DJANGO

INTRODUCTION

Abstract

An online auction project that holds online auctions of various products on a website and
serves sellers and bidders accordingly. The system is designed to allow users to set up
their products for auctions and bidders to register and bid for various products available
for bidding.
Online Auction or the E auction system project consists of the following parts:

 Bidder Login: Here the buyer or the product bidder can see a list of products up for
bidding and place his/her bid on the product.
 Seller Login: This is the seller module where the seller posts a product up for
auctions.
 Admin Login: This module is for the administrator who may delete fake or
unwanted ads.
 Report generation: Admin gets a report whenever wanted to state various products
up for bidding and various users registered on the website.

Introduction to the System

The purpose of this project is to build an “on-line auction management system”, a


place for buyers and sellers to come together and trade almost anything. In fact, the
system consists of a web-portal where registered users can propose new auctions and
place bids to buy the items on auction. Auctions have a name, a description, possibly a
photo (of the related item) uploaded by users and an end period: users cannot place bids
when the auction interval (start - end period) ends, but, in case there were no offers for an
item, there is the possibility to extend the interval. Moreover, administrators have the
possibility to accept or refuse auctions proposed by users, to view information about users
and items and to create, modify and delete the categories of auctions (auctions regarding
cars, books, music stuff, etc.). The system is realized with 3-tier architecture: a relational
database that store the information regarding items, users, auctions and categories of
auction; an application server that cares about the business logic of the system and the

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 1


ONLINE AUCTION SYSTEM USING DJANGO
presentation layer that consists in the web browser where users can interact with the
system. With such architecture, the database is never directly accessed: for example,
administrators can change the data stored in the database without connecting directly to it
but using their own browser.

Problem Definition

The problem with public auctions is that the participation of the public is very
limited. The aim of the project is to socialize the auction so that people from far
and wide and even across the continent can participate in it. The “Online Auction”
site is developed with a vision to wipe out the inherent problems of the
“Conventional Auction House”. The salient features of the site are as follows:

1. Paperless Auction System


2. It’s accessible to everyone, at any time, no matter where they are.
3. Reliable user validation and checking.
4. Easy online settlement.
The “Online Auction” is designed in such a way that it is as user friendly as possible. So,
any aspiring bidder or seller can visit the site and engage in bidding with the least effort.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 2


ONLINE AUCTION SYSTEM USING DJANGO

LITERATURE SURVEY

Introduction

Online auctions have revolutionized the way goods and services are traded by
providing a virtual marketplace where buyers and sellers interact in real time.
Various types of auctions such as English, Dutch, sealed-bid, and reverse auctions
are conducted through web platforms. The rise of e-commerce has led to
widespread research in developing secure, scalable, and user-friendly online
auction systems.

Existing Systems and Related Work

1. eBay (1995 - Present)

eBay is one of the earliest and most popular online auction platforms. It
supports multiple auction types, user feedback systems, and integrated payment
systems. It emphasizes user authentication, reputation systems, and fraud
detection.
Strengths: Large user base, secure payments (via PayPal), and anti-fraud
mechanisms.
Limitations: High service fees, limited customization for niche markets.

2. Amazon Auctions (Discontinued)

Amazon once offered auction services, which were later replaced by fixed-
price selling. This suggests that for certain products, direct sale models are more
effective than auctions.

3. Research Paper

"Design and Implementation of Web-based Auction System" (IEEE, 2017).


This study proposed a three-tier architecture: presentation, application, and data
layer. The research emphasized user registration, bidding functionality, and
auction closing logic.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 3


ONLINE AUCTION SYSTEM USING DJANGO
Key Takeaway: Importance of modular architecture and database synchronization.

4. Blockchain-based Auctions

Recent studies, such as “A Secure and Transparent Online Auction System


using Blockchain” (2020, Springer), explore blockchain to enhance transparency
and security in online auctions.

Key Takeaway: Blockchain eliminates the need for trusted third parties and
enables decentralized bidding.

Key Technologies in Use

Technology Purpose
PHP, Python, [Link] Server-side scripting
MySQL, MongoDB Database for storing bids and users
React, Angular Front-end UI frameworks
SSL, OAuth Security and authentication
Smart Contracts (Solidity) Blockchain-based auction logic

Limitations of Existing Systems

 Lack of real-time updates in simpler systems.


 Vulnerability to bid sniping and fake users.
 Limited support for multi-item or reverse auctions.
 Data privacy concerns in centralized systems.

Research Gaps and Opportunities

 Real-Time Bidding with WebSockets: Implementing push-based bid


updates.
 AI-Based Bid Analysis: Using machine learning for pricing predictions and
fraud detection.
 Multi-language and Accessibility Features: Enhancing reach and usability.
 Mobile App Integration: Providing seamless cross-device support.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 4


ONLINE AUCTION SYSTEM USING DJANGO

Conclusion

The evolution of online auction systems has moved from simple listing
platforms to intelligent, secure, and scalable systems. However, there is still room
for innovation in areas like real-time communication, transparency, and inclusive
design. The proposed project aims to address these gaps by building a modern,
user-friendly auction system with enhanced features and security.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 5


ONLINE AUCTION SYSTEM USING DJANGO

OBJECTIVE AND SCOPE

Objective
The main objective of an online auction system is to create a secure,
efficient, and user-friendly platform where buyers and sellers can interact and
conduct auctions over the internet. It aims to automate traditional auction
processes, providing a digital marketplace that allows real-time bidding,
transparent pricing, and broad market access.

Specific Objectives
 Facilitate Digital Auctions: Enable users to list items for auction and place
bids online.
 Ensure Transparency: Provide real-time bid updates and maintain fairness
in the auction process.
 Enhance Accessibility: Allow users to participate from any location via the
internet.
 Automate Auction Processes: Manage time-bound auctions, automatic bid
increments, and notifications.
 Secure Transactions: Implement authentication, authorization, and data
protection mechanisms.
 Support Multiple Auction Types: Enable formats such as English auctions
(ascending price), Dutch auctions (descending price), and sealed-bid
auctions.

Scope
The scope defines the boundaries and functionalities that the online auction
system will cover.
In-Scope Features:
 User Management: Registration and login, Profile management, Role-based
access (admin, seller, bidder)
 Auction Management: Create, edit, and delete auctions (for sellers),
Schedule start and end times, Set minimum bid and bid increment values

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 6


ONLINE AUCTION SYSTEM USING DJANGO
 Bidding System: Real-time bidding interface, Automatic bid tracking and
winner selection, Bid history logs
 Notifications: Email/SMS alerts for bid activity, auction start/end, and
payment instructions
 Search and Filter: Category-based search, Filter by price, time remaining,
item type, etc.
 Admin Panel: User and auction monitoring, Manage reports and feedback,
Enforce rules and handle disputes
 Payment Gateway Integration: Secure payment processing for winning bids
 Security Measures: Secure login (SSL, CAPTCHA, 2FA), Data encryption
and backup
 Out-of-Scope (Optional Future Enhancements): Mobile app integration,
AI-based bidding bots, Live auction video streaming, Integration with
logistics and delivery services.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 7


ONLINE AUCTION SYSTEM USING DJANGO

HARDWARE AND SOFTWARE REQUIREMENTS

Introduction

In this chapter we mentioned the software and hardware requirements, which are
necessary for successfully running this system. The major element in building systems is
selecting compatible hardware and software. The system analyst has to determine what
software package is best for the “Online Auction System” and, where software is not an
issue, the kind of hardware and peripherals needed for the final conversion.

System Environment

After analysis, some resources are required to convert the abstract system into a
real one. The hardware and software selection begins with requirement analysis, followed
by a request for proposal and vendor evaluation.

Software and real systems are identified. According to the functional


specification, all the technologies and their capacities are identified. Basic functions and
procedures, and methodologies are prepared to be implemented. Some of the Basic
requirements such as hardware and software are described as follows:

Software Requirements:

 Technology: Python Django


 IDE : Pycharm/Atom
 Client Side Technologies: HTML, CSS, JavaScript , Bootstrap
 Server Side Technologies: Python
 Data Base Server: Sqlite
 Operating System: Microsoft Windows/Linux

Hardware Requirements:

 Processor: Pentium-III (or) Higher


 Ram: 64MB (or) Higher
 Hard disk: 80GB (or) Higher

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 8


ONLINE AUCTION SYSTEM USING DJANGO

SOFTWARE REQUIREMENTS SPECIFICATION

Purpose

The purpose of this document is to define the software requirements for an


Online Auction System built using the Django web framework. This system will
allow users to list items for auction, bid on listed items, and manage their auctions
efficiently in a secure environment.

Scope

The online auction platform allows:

 Sellers to list products for auction.


 Buyers to bid on products.
 Automatic time-based auction closures.
 Admins to manage users and content.

The system will be web-based and built using Django, a high-level Python web
framework.

Definitions, Acronyms, and Abbreviations

 Django – Python-based web framework.


 UI – User Interface.
 HTTP – HyperText Transfer Protocol.
 DB – Database.

References

 Django Documentation: [Link]


 IEEE SRS Standard
 MySQL/PostgreSQL Documentation

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 9


ONLINE AUCTION SYSTEM USING DJANGO
Overview

This document provides a detailed overview of the system’s functionality,


requirements, and constraints. It covers functional and non-functional
requirements, system features, and interface descriptions.

Product Perspective

 The system is a web-based auction platform. It consists of:


 A client-side interface (HTML/CSS/JS)
 A server-side backend (Django)
 A database (e.g., SQLite, PostgreSQL)

Product Functions

 User registration/login.
 Listing and managing auctions.
 Placing bids.
 Auction countdown and automatic closure.
 Admin management panel.

User Classes and Characteristics

 Admin: Manages users and monitors auctions.


 Seller: Lists items for auction.
 Buyer: Places bids on items.

Operating Environment

 Server: Django, Python, Gunicorn/WSGI


 Client: Web browser (Chrome, Firefox, Edge)
 Database: PostgreSQL/MySQL/SQLite

Design and Implementation Constraints

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 10


ONLINE AUCTION SYSTEM USING DJANGO
 Built using Django framework.
 Should follow MVC architecture.
 Responsive design using Bootstrap or Tailwind.

User Documentation

 User Manual
 Installation Guide
 Admin Guide

Assumptions and Dependencies

 Users have internet access.


 System hosted on a web server.
 Python and Django installed.

Functional Requirements

 FR1: The system shall allow users to register and login.


 FR2: Users shall be able to list products with title, description, image, and
start/end times.
 FR3: Users shall be able to view auction listings.
 FR4: Buyers shall be able to place bids higher than the current bid.
 FR5: The system shall automatically close the auction at the end time.
 FR6: Admin shall be able to remove or block users and auctions.

Non-Functional Requirements

 NFR1: The system shall be scalable.


 NFR2: The system shall support at least 100 concurrent users.
 NFR3: Data shall be securely stored and transmitted using HTTPS.
 NFR4: The system shall provide response within 2 seconds for any action.

External Interface Requirements

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 11


ONLINE AUCTION SYSTEM USING DJANGO
 UI: Web-based interface with intuitive navigation.
 Database Interface: Django ORM to interact with backend DB.
 API Interface: REST APIs for auction and bid management (optional).

System Features

Feature Name Description


User Authentication Users can register/login/logout.
Auction Management Sellers can post new auctions, upload images, set deadlines.
Bidding System Real-time bidding and bid history.
Admin Dashboard Manage users, auctions, reports.
Notifications Users get alerts on bid updates and auction results.

Other Requirements

 Security: Use Django’s built-in protection against CSRF/XSS.


 Backup: Database backup weekly or on-demand.
 Logging: Admin activity and bid tracking should be logged.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 12


ONLINE AUCTION SYSTEM USING DJANGO

SYSTEM ARCHITECTURE AND DESIGN

Block Diagram

Block Diagram

Use Case Diagram

 Use case diagram consists of use cases and actors and shows the
interaction between them. The key points are:
 The main purpose is to show the interaction between the use cases and
the actor.
 To represent the system requirement from the user’s perspective.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 13


ONLINE AUCTION SYSTEM USING DJANGO
 The use cases are the functions that are to be performed in the module.

Use Case Diagram

Activity Diagram - Admin

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 14


ONLINE AUCTION SYSTEM USING DJANGO

Activity Diagram for Buyer

Activity Diagram For Seller

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 15


ONLINE AUCTION SYSTEM USING DJANGO

DFD (Data Flow Diagram) - Level 1

DFD (Data Flow Diagram) - Level 2

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 16


ONLINE AUCTION SYSTEM USING DJANGO

ER Diagram

Sequence Diagram For Administrator

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 17


ONLINE AUCTION SYSTEM USING DJANGO

SOURCE CODE

HOME PAGE CODING

{% extends '[Link]' %} {% block body %} {% load static %}


<link rel="stylesheet"
href="[Link]
[Link]">
<style>
[Link] {
width: 100%;
height: 470px;
margin-top: 1px;
background:url({% static 'images/[Link]' %});
background-repeat: no-repeat;
background-position: center;
border: 2px solid;
border-color: #CD853F;
}
[Link] {
width: 100%;
height: 470px;
background-color: black;
border: 1px solid;
border-color: #CD853F;
opacity: 0.6;
filter: alpha(opacity=60);
}
div.transparentbox1 {
opacity: 0.6;
filter: alpha(opacity=60);
}
[Link] p {

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 18


ONLINE AUCTION SYSTEM USING DJANGO
margin-top: 18%;
margin-left: 29%;
font-weight: bold;
font-Size: 60px;
font-family: 'Monotype Corsiva';
color: white;
font-weight: bold;
text-align: center;
}
div.transparentbox1 p {
margin-top: 10%;
margin-left: 31%;
font-weight: bold;
font-Size: 60px;
font-family: 'Monotype Corsiva';
color: #E6120E;
font-weight: bold;
text-align: center;
}
#circle {
background: green;
border-radius: 50%;
width: 150px;
height: 150px;
}
#halfCircleBottom {
height: 75px;
width: 150px;
border-radius: 0 0 90px 90px;
background: darkslategrey;
margin: 0px;
}
#halfCircle {
height: 75px;
width: 150px;

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 19


ONLINE AUCTION SYSTEM USING DJANGO
border-radius: 90px 90px 0 0;
background: green;
margin: 0px;
}
</style>
<div class="image">
<div class="transparentbox">
<div class="row">
<p style="text-align:center">Online Auction Service System</p>
</div>
</p>
</div>
</div>
<div class="container">
<h4 align="center" style="color:red;margin-top:2%">Just 4 Step to follow</h4>
<hr>
</div>
<div class="container" style="margin-top:4%">
<div class="row">
<div class="col-md-3">
<div class="transparentbox1">
<p id="halfCircle">
<i class="fa fa-building-o" style="color:white;font-size:40px"></i>
<p id="halfCircleBottom" style="font-size:20px;color:white"> Participate your service
</p>
</div>
</div>
<div class="col-md-3">
<div class="transparentbox1">
<p id="halfCircle">
<i class="fa fa-cutlery" style="color:white;font-size:40px"></i>
<p id="halfCircleBottom" style="font-size:20px;color:white"> Win Your Product </p>
</div>
</div>
<div class="col-md-3">

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 20


ONLINE AUCTION SYSTEM USING DJANGO
<div class="transparentbox1">
<p id="halfCircle">
<i class="fa fa-credit-card" style="color:white;font-size:40px"></i>
<p id="halfCircleBottom" style="font-size:20px;color:white"> Pay on delivery </p>
</div>
</div>
<div class="col-md-3">
<div class="transparentbox1">
<p id="halfCircle">
<i class="fa fa-thumbs-up" style="color:white;font-size:40px"></i>
<p id="halfCircleBottom" style="font-size:20px;color:white"> Enjoy your Service
</p>
</div>
</div>
</div>
</div> {% block body1 %} {% endblock %} {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 21


ONLINE AUCTION SYSTEM USING DJANGO
LOGIN PAGE CODING

{% extends '[Link]' %} {% block body %} {% load static %} {% ifequal error


"pat" %} <script>
alert('logged in successfully');
[Link] = ('{% url '
profile1 ' %}');
</script> {% endifequal %} {% ifequal error "pat1" %} <script>
alert('logged in successfully');
[Link] = ('{% url '
profile1 ' %}');
</script> {% endifequal %} {% ifequal error "not" %} <script>
alert('Username & Password are not Matching');
</script> {% endifequal %} <div class="container-fluid" style="width:70%;margin-
top:7%">
<div class="row">
<div class="col-md-6">
<h2 class="text-center">NEW CUSTOMERS</h2>
<hr>
<p>By creating an account with our store,we will be able to move through the checkout
process faster,store multiple shipping addresses,view and track your orders in your
account and more.</p>
<button class="btn btn-danger" style="color:white;margin-top:4%">
<a href="{% url 'signup' %}" style="color:white">CREATE AN ACCOUNT</a>
</button>
</div>
<div class="col-md-6">
<h2 class="text-center">Login Form</h2>
<hr>
<form method="post" action=""> {% csrf_token %} <div class="form-group">
<label for="exampleInputEmail1">Username</label>
<input type="text" class="form-control" id="exampleInputEmail1" aria-
describedby="emailHelp" name="uname" placeholder="Enter Username">
</div>
<div class="form-group">

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 22


ONLINE AUCTION SYSTEM USING DJANGO
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1"
placeholder="Password" name="pwd">
</div>
<button type="submit" class="btn btn-danger"
style="margin-top:2%">SUBMIT</button>
</form>
</div>
</div>
</div>
</div> {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 23


ONLINE AUCTION SYSTEM USING DJANGO
SIGNUP PAGE CODING

{% extends '[Link]' %} {% block body %} {% load static %} <div


class="container-fluid" style="width:70%;margin-top:5%;margin-bottom:5%">
<div class="row">
<div class="col-md-6">
<h3 class="text-center">Existing CUSTOMERS</h3>
<hr>
<p>By creating an account with our store,we will be able to move through the checkout
process faster,store multiple shipping addresses,view and track your orders in your
account and more.</p>
<button class="btn btn-danger" style="color:white;margin-top:4%">
<a href="{% url 'login_user' %}" style="color:white">ALREADY HAVE AN
ACCOUNT</a>
</button>
</div>
<div class="col-md-6">
<h3 class="text-center">REGISTERED With Us</h3>
<p align="center">If you have not an account with us , please signup</p>
<hr>
<form method="post" action="" enctype="multipart/form-data"> {% csrf_token %}
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputPassword4">Username</label>
<input type="text" class="form-control" placeholder="Enter Username"
name="uname" id="inputPassword4">
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Password</label>
<input type="password" class="form-control" placeholder="Enter Password"
name="pwd" id="inputPassword4">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 24


ONLINE AUCTION SYSTEM USING DJANGO
<label for="inputEmail4">First Name</label>
<input type="text" class="form-control" placeholder="Enter First Name"
name="fname" id="inputEmail4">
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Last Name</label>
<input type="text" class="form-control" name="lname" placeholder="Enter Last
Name" id="inputPassword4">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label for="exampleInputPassword1">Contact</label>
<input type="text" class="form-control" id="exampleInputPassword1"
placeholder="Enter Contact Detail" name="contact">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">Email Address</label>
<input type="email" class="form-control" name="email" placeholder="Enter Email
Address" id="inputEmail4">
</div>
<div class="form-group col-md-6">
<label for="inputEmail4">Address</label>
<input type="text" class="form-control" name="add" placeholder="Enter Address"
id="inputEmail4">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">Enter Date of Birth</label>
<input type="date" class="form-control" name="dob" placeholder="Enter Email
Address" id="inputEmail4">
</div>

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 25


ONLINE AUCTION SYSTEM USING DJANGO
<div class="form-group col-md-6">
<label for="inputEmail4">Image</label>
<input type="file" class="form-control" name="image" id="inputEmail4">
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label for="inputEmail4">Register As</label>
<br>
<div style="border:1px solid lightgrey;padding:5px;border-radius:6px">
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" id="customRadioInline1" name="reg" class="custom-control-
input" value="Seller">
<label class="custom-control-label" for="customRadioInline1">Seller</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
<input type="radio" id="customRadioInline2" name="reg" class="custom-control-
input" value="Bidder">
<label class="custom-control-label" for="customRadioInline2">Bidder</label>
</div>
</div>
</div>
<button type="submit" class="btn btn-danger">Submit</button>
</form>
</div>
</div>
</div> {% if error %} <script>
alert('Regitered Successfully');
[Link] = "{% url 'login_user' %}";
</script> {% endif %} {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 26


ONLINE AUCTION SYSTEM USING DJANGO
USER HOME PAGE

{% extends '[Link]' %} {% load static %} {% block body1 %}


My Profile
Full Name:
{{[Link].first_name}} {{[Link].last_name}}
Image:
Email Id :
{{[Link]}}
Date of Birth :
{{[Link]}}
Contact :
{{[Link]}}
Address :
{{[Link]}}
Edit Profile
{% endblock %}

VIEW AUCTION PRODUCTS PAGE CODING

{% extends '[Link]' %} {% block body %} {% load static %}


View Product
{{message1}}
{% for j in pro %} {% if [Link] == "Accept" or [Link] == "Done" %}
{{[Link]}}
{{[Link]}}
₹ : {{j.min_price}}
Detail
{% ifequal [Link] 0 %} {% csrf_token %} Participate {% else %} {% ifequal [Link] 2
%} Currently in Bid = {% else %} {% ifequal [Link] 3 %} winner announced {% else %}
Already Participated
{% endifequal %} {% endifequal %} {% endifequal %}
{% endif %} {% endfor %}
{% if terror %} {% endif %} {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 27


ONLINE AUCTION SYSTEM USING DJANGO
AUCTION START PAGE CODING

{% extends '[Link]' %} {% block body %} {% load static %}


Session Room
Start Time : {{pro.aucted_product.[Link]}} & End Time : {{end2}}
Product Name :
{{pro.aucted_product.[Link]}}
Product Seller :
{{pro.aucted_product.[Link]}}
Minium Price :
₹{{pro.aucted_product.product.min_price}}.00 /-
{% csrf_token %}
Enter New Price
Submit
All Bidder
{% for i in pro2 %}
{{[Link]}}
Current Price : ₹ {{i.new_price}}.00 /-
{% endfor %}
{% ifequal terror "expire" %} {% endifequal %} {% if me %} {% endif %} {% endblock
%}

VIEW WINNER PAGE CODING


{% extends '[Link]' %} {% load static %} {% block body1 %}
Bidder Name :
Phone :
Email :
Sold by :
Your offer Price :
{{[Link].first_name}} {{[Link].last_name}}
{{[Link]}}
{{[Link]}}
Rs. {{pro.new_price}}.00 /-
Rs. {{pro.aucted_product.product.min_price}}.00 /- {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 28


ONLINE AUCTION SYSTEM USING DJANGO
CHANGE PASSWORD PAGE CODING

{% extends '[Link]' %} {% block body1 %} {% load static %} <div


class="container" style="background:white;padding:20px;margin-top:4%">
<h2 style="margin-top:4%;font-family:'Monotype Corsiva';color:red"
align="center">Change Password</h2>
<hr>
<div align="left" class="container-fluid" style="width:70%;margin-top:4%">
<form method="post" action=""> {% csrf_token %} <div class="form-group">
<label for="exampleInputEmail1">Old Password</label>
<input type="password" class="form-control" id="exampleInputEmail1" aria-
describedby="emailHelp" name="pwd3">
</div>
<div class="form-group">
<label for="exampleInputEmail1">New Password</label>
<input type="password" class="form-control" id="exampleInputEmail1" aria-
describedby="emailHelp" name="pwd1">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Confirm Password</label>
<input type="password" class="form-control" id="exampleInputPassword1"
name="pwd2">
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div> {% ifequal terror "yes" %} <script>
alert('Password Changed.....');
[Link] = ('{% url '
logout ' %}')
</script> {% endifequal %} {% ifequal terror "not" %} <script>
alert('New Password and Confirm Password are not match');
</script> {% endifequal %} {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 29


ONLINE AUCTION SYSTEM USING DJANGO
ADD AUCTION PRODUCT PAGE CODING
{% extends '[Link]' %} {% block body %} {% load static %}
Add Product

{% csrf_token %}
Select Category
---select Category---
{% for i in cat %}
{{[Link]}}
{% endfor %}
Select Sub-Category
Product name
Minimum Price
Product Image
Select Session Date
---select Session Date---
{% for i in sed %}
{{[Link]}}
{% endfor %}
Session Time
Submit
{% if terror %} {% endif %} {% endblock %}

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 30


ONLINE AUCTION SYSTEM USING DJANGO

TESTING

System Testing

After all phases have been perfectly done, the system will be implemented to the
server and the system can be used.

System Testing

The goal of the system testing process was to determine all faults in our project.
The program was subjected to a set of test inputs and many explanations were made and
based on these explanations it will be decided whether the program behaves as expected
or not. Our Project went through two levels of testing
1. Unit testing
2. Integration testing

Unit Testing

Unit testing commences when a unit has been created and is effectively
reviewed. To test a single module, we need to provide a complete environment i.e.
besides the section we would require

 The procedures belonging to other units that the unit under test calls
 Nonlocal data structures that module accesses
 A procedure to call the functions of the unit under test with appropriate
parameters

1. Test for the admin module

 Testing admin login form-This form is used for logging in to administrator of the
system. In this form, we enter the username and password. If both are correct, the
administration page will open otherwise if any data is wrong it will get redirected
back to the login page and again ask for the details.
 Report Generation: admin can generate reports from the main database.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 31


ONLINE AUCTION SYSTEM USING DJANGO
Integration Testing

In Integration testing, we test various combinations of the project module by


providing input. The primary objective is to test the module interfaces to confirm that no
errors are occurring when one module invokes the other module.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 32


ONLINE AUCTION SYSTEM USING DJANGO

IMPLEMENTATION

Python

Python is a widely used general-purpose, high level programming language. It


was initially designed by Guido van Rossum in 1991 and developed by the Python
Software Foundation. It was mainly developed for emphasis on code readability, and its
syntax allows programmers to express concepts in fewer lines of code.

Python is a programming language that lets you work quickly and integrate
systems more efficiently.

Python is dynamically typed and garbage collected. It supports


multiple programming paradigms, including procedural, object-oriented, and functional
programming. Python is often described as a "batteries included" language due to its
comprehensive standard library.

HTML

HTML (Hypertext Markup Language) is the set of markup symbols or codes


inserted in a file intended for display on a World Wide Web browser page. The markup
tells the Web browser how to display a Web page's words and images for the user. Each
individual markup code is referred to as an element (but many people also refer to it as
a tag). Some elements come in pairs that indicate when some display effect is to begin
and when it is to end.

Cascading Style Sheet (CSS)

Cascading Style Sheets (CSS) are a collection of rules we use to define and
modify web pages. CSS is like a style in Word. CSS allows Web designers to have much
more control over their pages' look and layout. For instance, you could create a style that
defines the body text to be Verdana, 10 points. Later, you may easily change the body
text to Times New Roman, 12 points by just changing the rule in the CSS. Instead of
having to change the font on each page of your website, all you need to do is redefine the

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 33


ONLINE AUCTION SYSTEM USING DJANGO
style on the style sheet, and it will instantly change on all the pages that the style sheet
has been applied to. With HTML styles, the font change would be applied to each
instance of that font and must be changed in each spot.

CSS can control the placement of text and objects on your pages as well as the
look of those objects.

HTML information creates the objects (or gives objects meaning), but styles
describe how the objects should appear. The HTML gives your page structure, while the
CSS creates the “presentation”. An external CSS is just a text file with a .css extension.
These files can be created with Dreamweaver, a CSS editor, or even Notepad.

The best practice is to design your web page on paper first, so you know where
you will want to use styles on your page. Then you can create the styles and apply them
to your page.

JavaScript

JavaScript is a programming language commonly used in web development. It


was originally developed by Netscape to add dynamic and interactive elements to
websites. While JavaScript is influenced by Java, the syntax is more like C and is based
on ECMAScript, a scripting language developed by Sun Microsystems.

JavaScript is a client-side scripting language, which means the source code is


processed by the client web browser rather than on the web server. This means
JavaScript functions can run after a webpage has loaded without
COMMUNICATING with the server. For example, a JavaScript function may check a
web form before it is submitted to make sure all the required fields have been filled out.
The JavaScript code can produce an error message before any information is transmitted
to the server.

Like server-side scripting languages, such as PHP and ASP, JavaScript code can
be inserted anywhere within the HTML of a webpage. However, only the output of
server-side code is displayed in the HTML, while JavaScript code remains fully visible in
the source of the webpage. It can also be referenced in a separate .JS file, which may also
be viewed in a browser.

Django

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 34


ONLINE AUCTION SYSTEM USING DJANGO
Django is a web application framework written in Python programming language.
It is based on an MVT (Model View Template) design pattern. Django is very demanding
due to its rapid development features. It takes less time to build an application after
collecting client requirements.

This framework uses a famous tag line: The web framework for perfectionists
with deadlines.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 35


ONLINE AUCTION SYSTEM USING DJANGO

PROJECT EXECUTION SCREENSHOTS

Home Page - Login Page

Registration Page

Seller Home Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 36


ONLINE AUCTION SYSTEM USING DJANGO

Add Product for Auction

View Auction Products Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 37


ONLINE AUCTION SYSTEM USING DJANGO

View Winners Page

Edit Profile Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 38


ONLINE AUCTION SYSTEM USING DJANGO

Bidder Home Page

Auction Product Detail Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 39


ONLINE AUCTION SYSTEM USING DJANGO

View Winner Page

Admin Login Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 40


ONLINE AUCTION SYSTEM USING DJANGO

Admin Home Page

Add Product Category Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 41


ONLINE AUCTION SYSTEM USING DJANGO

View Category Page

Add Subcategory Page

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 42


ONLINE AUCTION SYSTEM USING DJANGO

View All Auction Products

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 43


ONLINE AUCTION SYSTEM USING DJANGO

LIMITATIONS

Advantages of “Online Auction System”

The “Online Auction System” provides various features, which complement the
information system and increase the productivity of the system. These features make the
system easily usable and convenient. Some of the important features included are listed
as follows:

 Intelligent User Forms Design


o Data access and manipulation through same forms
o Access to most required information
 Data Security
 Restrictive data access, as per login assigned only.
 Organized and structured storage of facts.
 Strategic Planning made it easy.
 No decay of old Records.
 Exact financial position of the business.
 No noisy crowds like conventional systems where users must sit and bid.
 Excludes general frustration that usually happens while bidding in conventional
systems.
 The bidding process can be conducted on a global scale.

Limitations of “Online Auction System”

Besides the above achievements and the successful completion of the project, we
still feel the project has some limitations, listed as below:

 It is not a large-scale system.


 Only limited information is provided by this system.
 Since it is an online project, the user needs an internet connection to
access this software.
 People who are not familiar with computers can’t use this software.

FUTURE ENHANCEMENTS

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 44


ONLINE AUCTION SYSTEM USING DJANGO

Future Enhancements

This web application involves almost all the basic features of the online auction
system. The future implementation will be online help for users and chatting with website
administrators.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 45


ONLINE AUCTION SYSTEM USING DJANGO

CONCLUSION

The project entitled “Online Auction System” is developed using HTML, CSS and
Bootstrap as front end and Python Django and SQLite database in back end to
computerize the process of auction i.e. selling and buying product. This project covers
only the basic features required. Online Auction System will give a new approach and
dimension to the auction system. It will encourage both buyers and sellers to participate
in the auction process. Remove geographical boundaries, location constraints, and time
constraints.

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 46


ONLINE AUCTION SYSTEM USING DJANGO

BIBLIOGRAPHY

 Wikipedia
 [Link]
 [Link]
 [Link]
 [Link]

REFERENCE BOOKS

 Two scoops of Django for 1.11 by Daniel Greenfeld’s and Audrey Greenfield
 Lightweight Django by Elman and Mark Lavin

OXFORD COLLEGE OF COMPUTER APPLICATIONS (BCA) Page No. 47

You might also like