SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
DATABASE MANAGEMENT SYSTEM
LAB PROJECT
PROJECT TITLE:
ONLINE SHOPPING STORE
Submitted By:
Meharunisa Ashraf
2017-EE-02
2017ee2@student.uet.edu.pk
Hamda Anees
2017-EE-07
2017ee7@student.uet.edu.pk
Submitted To: Sir Umer Shahid
Department of Electrical Engineering
University of Engineering & Technology Lahore
Contents
Abstract: .....................................................................................................................................................................3
Introduction:...............................................................................................................................................................3
ONLINE SHOPPING STORE:.........................................................................................................................................4
ER DIAGRAM: .........................................................................................................................................................4
RELATIONAL SCHEMA: ...........................................................................................................................................5
Django framework: ....................................................................................................................................................5
Model: ....................................................................................................................................................................6
View:.......................................................................................................................................................................6
Template:................................................................................................................................................................6
PythonAnywhere: ......................................................................................................................................................6
Methodology:.............................................................................................................................................................6
Create the database tables:....................................................................................................................................7
Create the database views:.....................................................................................................................................7
Create the database Templates:.............................................................................................................................8
Functionality:............................................................................................................................................................10
 Cover page ....................................................................................................................................................10
1st User:................................................................................................................................................................10
 Signup page...................................................................................................................................................10
 Login page.....................................................................................................................................................11
 Home page....................................................................................................................................................11
 Cart Page.......................................................................................................................................................12
 Order Page ....................................................................................................................................................12
2nd User: ..............................................................................................................................................................13
 Staff Page ......................................................................................................................................................13
3rd User: ...............................................................................................................................................................13
 Admin Page...................................................................................................................................................13
Github Link: ......................................................................................................................................................14
Website link:.....................................................................................................................................................14
Demo Video:.....................................................................................................................................................14
Conclusion: ...............................................................................................................................................................14
ABSTRACT:
This report introduces the process of creating part of a course management system which is a data-
driven website used by the instructors and students. This website has four major components:
grade, marking, group, and submission. The major part of the group component and minor part of
marking component are implemented by me and the implementation details will be introduced in
the report. The implementation uses a tool called Django Framework which is an excellent open
source web application frame work for complex data-driven website development. The major part
of this report will introduce how to use Django to create a database table, web page user interface
and inner logic to handle user request by going through the group component implementation
process.
INTRODUCTION:
This project report will introduce how to build part of a course management system using the
Django framework. Django is an open source web application frame work which is written in
Python. This course management system built using Django has four major components each of
which has different functionality but similar architecture. In the project report I will demonstrate
details of using Django to build one major component of this system: the group component, which
is my major contribution to the whole system. Also the technique and process which is showed
here can be applied to build the other three components in the course management system as well
as other complex database-driven websites.
ONLINE SHOPPING STORE:
Developed a shopping website built with Django html. This projects aims to develop an online
shopping for customers with the goal so that it is very easy to shop your loved things from an
extensive number of online shopping sites available on the web. With the help of this you can
carry out an online shopping from your home. Here is no compelling reason to go to the crowed
stores or shopping centers during festival seasons. You simply require a PC or a laptop and one
important payment sending option to shop online. To get to this online shopping system all the
customers will need to have an email and password to login and proceed your shopping.
We have divided the work in group as created models and populated data and wrote views with
html pages.
ER DIAGRAM:
 I have not mentioned Admin as Entity in ER Diagram because I will be using it as Django
Administration.
 I will be using Cart by creating virtual session. I will not make a model for it.
 Order List Relation contains the ID’s of customer, Staff, Product, Orders.
 Staff will be seeing the order list placed by all the customers.
RELATIONAL SCHEMA:
DJANGO FRAMEWORK:
Django is an open source web application frame work written in Python. The primary goal of
Django is to make the development of complex, data-based websites easier. Thus Django
emphasizes the reusability and plug ability of components to ensure rapid developments. Django
consists of three major parts:
 model
 view
 template
Model:
Model is a single, definitive data source which contains the essential field and behavior of the data.
Usually one model is one table in the database. Each attribute in the model represents a field of a
table in the database. Django provides a set of automatically-generated database application
programming interfaces (APIs) for the convenience of users.
View:
View is short form of view file. It is a file containing Python function which takes web requests
and returns web responses. A response can be HTML content or XML documents or a “404 error”
and so on. The logic inside the view function can be arbitrary as long as it returns the desired
response. To link the view function with a particular URL we need to use a structure called
URLconf which maps URLs to view functions.
Template:
Django’s template is a simple text file which can generate a text-based format like HTML
and XML. The template contains variables and tags. Variables will be replaced by the result
when the template is evaluated. Tags control the logic of the template. We also can modify
the variables by using filters. For example, a lowercase filter can convert the variable from
uppercase into lowercase. Python is the language used to build the Django framework.
PYTHONANYWHERE:
PythonAnywhere is an online integrated development environment and web hosting service based
on the Python programming language. Established by Giles Thomas and Robert Smithson in 2012,
it gives in-program admittance to worker based Python and Bash order line interfaces, alongside
a code editorial manager with linguistic structure featuring. Program documents can be moved to
and from the administration utilizing the client's program. Web applications facilitated by the
administration can be composed utilizing any WSGI-based application structure.
PythonAnywhere was made by Resolver Systems, who likewise delivered Resolver One, a
Python-based Spreadsheet program. On 16 October 2012 the item was obtained by another
organization, PythonAnywhere LLP, who will create and keep up the item later on, and have taken
on the current improvement group.
METHODOLOGY:
This online shopping store website is basically approached by three types of users which are
Admin, Customer and Staff.
Create the database tables:
To get started, we need to create a backend of the system which is the database. All the tables in
the database for this website include information for customers, products, catalogue, and orders.
For example:
Create the database views:
First, it is used to pass parameters to the template and call the right template for the user. Every
time we input a URL in the address bar or click a hyperlink in the system, Django will call the
right view function based on that URL. Then the function will return a template as well as the
corresponding parameters. Thus we can see the actual web page displaying the information we
need. Second, if we submit something such as create group, the function will have an http request
as its input parameter. Based on that parameter the database is updated or the user is provided the
required information. The view function for creating a group is given below:
Create the database Templates:
Being a web framework, Django needs a convenient way to generate HTML dynamically. The
most common approach relies on templates. A template contains the static parts of the desired
HTML output as well as some special syntax describing how dynamic content will be inserted.
For a hands-on example of creating HTML pages with templates.
For example:
FUNCTIONALITY:
 Cover page
1st User:
 Signup page
A visitor can create an account with the Sign-Up page.
 Login page
Customer uses Login page to open account and accesses the website content.
 Home page
Products are displayed in home page with option of catalogue. It is similar for all users.
 Cart Page
After logging in customer/user can access the cart having the selected products to buy.
 Order Page
This page will be having all the orders placed by one user id, it will show if the order is still
pending or completed with quantity of product and all other information about it.
2nd User:
 Staff Page
Staff member with assigned id can access this page only. It will show all the orders placed
by all the customers.
3rd User:
 Admin Page
The admin page is restricted only for administrators where they can add new products,
catalogue etc.
Github Link: https://github.com/MeharunisaAshraf/Django_Eshop
Website link: http://mehrunisaashraf.pythonanywhere.com/
Demo Video: https://drive.google.com/file/d/1ENPFdK_R2C-
JyvTh1Z4ZamiDskcyRrMS/view?usp=sharing
CONCLUSION:
The Django framework gives us a simple and reliable way to create online website. It provides
powerful functionalities and concise syntax to help programmers deal with the database, the web
page and the inner logic. Within the Django framework, we have successfully accomplished the
requirements of the system. Once this system passes the testing phase, it can be used to serve
customers. It will make the work for staff/admin to manage the data much easier. In short, this
system will bring great user experience to both customers and staff members. The only limitation
for this system is that although the developers have been testing it with various use cases, it may
still encounter problems during real time use. However, even if that happens, the flexibility of
Django would provide a simple way to fix the problem, as well as add new features into the system.

Mais conteúdo relacionado

Mais procurados

Final Year Projects Computer Science (Information security) -2015
Final Year Projects Computer Science (Information security) -2015Final Year Projects Computer Science (Information security) -2015
Final Year Projects Computer Science (Information security) -2015Syed Ubaid Ali Jafri
 
E-Commerce Mobile Sale System
E-Commerce Mobile Sale SystemE-Commerce Mobile Sale System
E-Commerce Mobile Sale SystemAbhishek Kumar
 
Final year project working documentation 2020
Final year project working documentation 2020Final year project working documentation 2020
Final year project working documentation 2020Vikram Singh
 
Online Electronic Shopping Project Report Final Year
Online Electronic Shopping Project Report Final YearOnline Electronic Shopping Project Report Final Year
Online Electronic Shopping Project Report Final YearAmit Verma
 
Internship Presentation 1 Web Developer
Internship Presentation 1 Web DeveloperInternship Presentation 1 Web Developer
Internship Presentation 1 Web DeveloperHemant Sarthak
 
Problem statement
Problem statementProblem statement
Problem statementKanika Jain
 
Smart traffic managment system real time (stmsrt)
Smart traffic managment system real time (stmsrt)Smart traffic managment system real time (stmsrt)
Smart traffic managment system real time (stmsrt)Ayoub Rouzi
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project PresentationMilind Gokhale
 
Chapter 1 - Web Design
Chapter 1 - Web DesignChapter 1 - Web Design
Chapter 1 - Web Designtclanton4
 
Project Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemProject Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemCharitha Gamage
 
City search documentation
City search documentationCity search documentation
City search documentationRajesh Varanasi
 
Online Shop Project Report
Online Shop Project ReportOnline Shop Project Report
Online Shop Project ReportJayed Imran
 
online Book Selling.pptx
online Book Selling.pptxonline Book Selling.pptx
online Book Selling.pptxshivantGupta1
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online StoreAhsan Rizwan
 

Mais procurados (20)

Final Year Projects Computer Science (Information security) -2015
Final Year Projects Computer Science (Information security) -2015Final Year Projects Computer Science (Information security) -2015
Final Year Projects Computer Science (Information security) -2015
 
E-Commerce Mobile Sale System
E-Commerce Mobile Sale SystemE-Commerce Mobile Sale System
E-Commerce Mobile Sale System
 
Burp suite
Burp suiteBurp suite
Burp suite
 
Final year project working documentation 2020
Final year project working documentation 2020Final year project working documentation 2020
Final year project working documentation 2020
 
Web Programming Assignment
Web Programming AssignmentWeb Programming Assignment
Web Programming Assignment
 
Online Electronic Shopping Project Report Final Year
Online Electronic Shopping Project Report Final YearOnline Electronic Shopping Project Report Final Year
Online Electronic Shopping Project Report Final Year
 
Internship Presentation 1 Web Developer
Internship Presentation 1 Web DeveloperInternship Presentation 1 Web Developer
Internship Presentation 1 Web Developer
 
C111230
C111230C111230
C111230
 
ALGORITHM VISUALIZER1.pdf
ALGORITHM VISUALIZER1.pdfALGORITHM VISUALIZER1.pdf
ALGORITHM VISUALIZER1.pdf
 
Problem statement
Problem statementProblem statement
Problem statement
 
Tracing in ASp.Net
Tracing in ASp.NetTracing in ASp.Net
Tracing in ASp.Net
 
Smart traffic managment system real time (stmsrt)
Smart traffic managment system real time (stmsrt)Smart traffic managment system real time (stmsrt)
Smart traffic managment system real time (stmsrt)
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project Presentation
 
Chapter 1 - Web Design
Chapter 1 - Web DesignChapter 1 - Web Design
Chapter 1 - Web Design
 
Project Proposal document for Hotel Management System
Project Proposal document for Hotel Management SystemProject Proposal document for Hotel Management System
Project Proposal document for Hotel Management System
 
Srs documentation
Srs documentationSrs documentation
Srs documentation
 
City search documentation
City search documentationCity search documentation
City search documentation
 
Online Shop Project Report
Online Shop Project ReportOnline Shop Project Report
Online Shop Project Report
 
online Book Selling.pptx
online Book Selling.pptxonline Book Selling.pptx
online Book Selling.pptx
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 

Semelhante a Database Website on Django

Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docxfantabulous2024
 
0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdfradhianiedjan1
 
Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)Nishant Soni
 
Learn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersLearn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersMars Devs
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and ArchitectureAndolasoft Inc
 
Django 1.10.3 Getting started
Django 1.10.3 Getting startedDjango 1.10.3 Getting started
Django 1.10.3 Getting startedMoniaJ
 
CCCDjango2010.pdf
CCCDjango2010.pdfCCCDjango2010.pdf
CCCDjango2010.pdfjayarao21
 
Ramya devi R internet of things
Ramya devi R internet of thingsRamya devi R internet of things
Ramya devi R internet of thingsPriyadharshiniVS
 
report_vendor_connect
report_vendor_connectreport_vendor_connect
report_vendor_connectYash Mittal
 
Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...Edureka!
 
What are the basic key points to focus on while learning Full-stack web devel...
What are the basic key points to focus on while learning Full-stack web devel...What are the basic key points to focus on while learning Full-stack web devel...
What are the basic key points to focus on while learning Full-stack web devel...kzayra69
 
Build up and tune PC website(prototype)
Build up and tune PC website(prototype)Build up and tune PC website(prototype)
Build up and tune PC website(prototype)Saurabh Sutone
 

Semelhante a Database Website on Django (20)

Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docx
 
0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf
 
Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)
 
Basic Python Django
Basic Python DjangoBasic Python Django
Basic Python Django
 
Django by rj
Django by rjDjango by rj
Django by rj
 
django
djangodjango
django
 
Django Introdcution
Django IntrodcutionDjango Introdcution
Django Introdcution
 
Learn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for DevelopersLearn Django Tips, Tricks & Techniques for Developers
Learn Django Tips, Tricks & Techniques for Developers
 
Django framework
Django frameworkDjango framework
Django framework
 
django part-1
django part-1django part-1
django part-1
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and Architecture
 
Django 1.10.3 Getting started
Django 1.10.3 Getting startedDjango 1.10.3 Getting started
Django 1.10.3 Getting started
 
CCCDjango2010.pdf
CCCDjango2010.pdfCCCDjango2010.pdf
CCCDjango2010.pdf
 
Ramya devi R internet of things
Ramya devi R internet of thingsRamya devi R internet of things
Ramya devi R internet of things
 
report_vendor_connect
report_vendor_connectreport_vendor_connect
report_vendor_connect
 
Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...
 
Django
Django Django
Django
 
What are the basic key points to focus on while learning Full-stack web devel...
What are the basic key points to focus on while learning Full-stack web devel...What are the basic key points to focus on while learning Full-stack web devel...
What are the basic key points to focus on while learning Full-stack web devel...
 
Django & React
Django & ReactDjango & React
Django & React
 
Build up and tune PC website(prototype)
Build up and tune PC website(prototype)Build up and tune PC website(prototype)
Build up and tune PC website(prototype)
 

Mais de HamdaAnees

Smart Crowd Analyzer.pptx
Smart Crowd Analyzer.pptxSmart Crowd Analyzer.pptx
Smart Crowd Analyzer.pptxHamdaAnees
 
Pakistan Constitution 1956
Pakistan Constitution 1956 Pakistan Constitution 1956
Pakistan Constitution 1956 HamdaAnees
 
Religious Hatred
Religious HatredReligious Hatred
Religious HatredHamdaAnees
 
Machine Learning Project - Neural Network
Machine Learning Project - Neural Network Machine Learning Project - Neural Network
Machine Learning Project - Neural Network HamdaAnees
 
Effective Body Language For Presentation Skills
Effective Body Language For Presentation SkillsEffective Body Language For Presentation Skills
Effective Body Language For Presentation SkillsHamdaAnees
 

Mais de HamdaAnees (8)

Smart Crowd Analyzer.pptx
Smart Crowd Analyzer.pptxSmart Crowd Analyzer.pptx
Smart Crowd Analyzer.pptx
 
Uber Corp
Uber CorpUber Corp
Uber Corp
 
Pakistan Constitution 1956
Pakistan Constitution 1956 Pakistan Constitution 1956
Pakistan Constitution 1956
 
Religious Hatred
Religious HatredReligious Hatred
Religious Hatred
 
Machine Learning Project - Neural Network
Machine Learning Project - Neural Network Machine Learning Project - Neural Network
Machine Learning Project - Neural Network
 
UBER Corp
UBER CorpUBER Corp
UBER Corp
 
Illiteracy
IlliteracyIlliteracy
Illiteracy
 
Effective Body Language For Presentation Skills
Effective Body Language For Presentation SkillsEffective Body Language For Presentation Skills
Effective Body Language For Presentation Skills
 

Último

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 

Último (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 

Database Website on Django

  • 1. DATABASE MANAGEMENT SYSTEM LAB PROJECT PROJECT TITLE: ONLINE SHOPPING STORE Submitted By: Meharunisa Ashraf 2017-EE-02 2017ee2@student.uet.edu.pk Hamda Anees 2017-EE-07 2017ee7@student.uet.edu.pk Submitted To: Sir Umer Shahid Department of Electrical Engineering University of Engineering & Technology Lahore
  • 2. Contents Abstract: .....................................................................................................................................................................3 Introduction:...............................................................................................................................................................3 ONLINE SHOPPING STORE:.........................................................................................................................................4 ER DIAGRAM: .........................................................................................................................................................4 RELATIONAL SCHEMA: ...........................................................................................................................................5 Django framework: ....................................................................................................................................................5 Model: ....................................................................................................................................................................6 View:.......................................................................................................................................................................6 Template:................................................................................................................................................................6 PythonAnywhere: ......................................................................................................................................................6 Methodology:.............................................................................................................................................................6 Create the database tables:....................................................................................................................................7 Create the database views:.....................................................................................................................................7 Create the database Templates:.............................................................................................................................8 Functionality:............................................................................................................................................................10  Cover page ....................................................................................................................................................10 1st User:................................................................................................................................................................10  Signup page...................................................................................................................................................10  Login page.....................................................................................................................................................11  Home page....................................................................................................................................................11  Cart Page.......................................................................................................................................................12  Order Page ....................................................................................................................................................12 2nd User: ..............................................................................................................................................................13  Staff Page ......................................................................................................................................................13 3rd User: ...............................................................................................................................................................13  Admin Page...................................................................................................................................................13 Github Link: ......................................................................................................................................................14 Website link:.....................................................................................................................................................14 Demo Video:.....................................................................................................................................................14 Conclusion: ...............................................................................................................................................................14
  • 3. ABSTRACT: This report introduces the process of creating part of a course management system which is a data- driven website used by the instructors and students. This website has four major components: grade, marking, group, and submission. The major part of the group component and minor part of marking component are implemented by me and the implementation details will be introduced in the report. The implementation uses a tool called Django Framework which is an excellent open source web application frame work for complex data-driven website development. The major part of this report will introduce how to use Django to create a database table, web page user interface and inner logic to handle user request by going through the group component implementation process. INTRODUCTION: This project report will introduce how to build part of a course management system using the Django framework. Django is an open source web application frame work which is written in Python. This course management system built using Django has four major components each of which has different functionality but similar architecture. In the project report I will demonstrate details of using Django to build one major component of this system: the group component, which is my major contribution to the whole system. Also the technique and process which is showed here can be applied to build the other three components in the course management system as well as other complex database-driven websites.
  • 4. ONLINE SHOPPING STORE: Developed a shopping website built with Django html. This projects aims to develop an online shopping for customers with the goal so that it is very easy to shop your loved things from an extensive number of online shopping sites available on the web. With the help of this you can carry out an online shopping from your home. Here is no compelling reason to go to the crowed stores or shopping centers during festival seasons. You simply require a PC or a laptop and one important payment sending option to shop online. To get to this online shopping system all the customers will need to have an email and password to login and proceed your shopping. We have divided the work in group as created models and populated data and wrote views with html pages. ER DIAGRAM:  I have not mentioned Admin as Entity in ER Diagram because I will be using it as Django Administration.  I will be using Cart by creating virtual session. I will not make a model for it.  Order List Relation contains the ID’s of customer, Staff, Product, Orders.  Staff will be seeing the order list placed by all the customers.
  • 5. RELATIONAL SCHEMA: DJANGO FRAMEWORK: Django is an open source web application frame work written in Python. The primary goal of Django is to make the development of complex, data-based websites easier. Thus Django emphasizes the reusability and plug ability of components to ensure rapid developments. Django consists of three major parts:  model  view  template
  • 6. Model: Model is a single, definitive data source which contains the essential field and behavior of the data. Usually one model is one table in the database. Each attribute in the model represents a field of a table in the database. Django provides a set of automatically-generated database application programming interfaces (APIs) for the convenience of users. View: View is short form of view file. It is a file containing Python function which takes web requests and returns web responses. A response can be HTML content or XML documents or a “404 error” and so on. The logic inside the view function can be arbitrary as long as it returns the desired response. To link the view function with a particular URL we need to use a structure called URLconf which maps URLs to view functions. Template: Django’s template is a simple text file which can generate a text-based format like HTML and XML. The template contains variables and tags. Variables will be replaced by the result when the template is evaluated. Tags control the logic of the template. We also can modify the variables by using filters. For example, a lowercase filter can convert the variable from uppercase into lowercase. Python is the language used to build the Django framework. PYTHONANYWHERE: PythonAnywhere is an online integrated development environment and web hosting service based on the Python programming language. Established by Giles Thomas and Robert Smithson in 2012, it gives in-program admittance to worker based Python and Bash order line interfaces, alongside a code editorial manager with linguistic structure featuring. Program documents can be moved to and from the administration utilizing the client's program. Web applications facilitated by the administration can be composed utilizing any WSGI-based application structure. PythonAnywhere was made by Resolver Systems, who likewise delivered Resolver One, a Python-based Spreadsheet program. On 16 October 2012 the item was obtained by another organization, PythonAnywhere LLP, who will create and keep up the item later on, and have taken on the current improvement group. METHODOLOGY: This online shopping store website is basically approached by three types of users which are Admin, Customer and Staff.
  • 7. Create the database tables: To get started, we need to create a backend of the system which is the database. All the tables in the database for this website include information for customers, products, catalogue, and orders. For example: Create the database views: First, it is used to pass parameters to the template and call the right template for the user. Every time we input a URL in the address bar or click a hyperlink in the system, Django will call the right view function based on that URL. Then the function will return a template as well as the corresponding parameters. Thus we can see the actual web page displaying the information we need. Second, if we submit something such as create group, the function will have an http request as its input parameter. Based on that parameter the database is updated or the user is provided the required information. The view function for creating a group is given below:
  • 8. Create the database Templates: Being a web framework, Django needs a convenient way to generate HTML dynamically. The most common approach relies on templates. A template contains the static parts of the desired HTML output as well as some special syntax describing how dynamic content will be inserted. For a hands-on example of creating HTML pages with templates. For example:
  • 9.
  • 10. FUNCTIONALITY:  Cover page 1st User:  Signup page A visitor can create an account with the Sign-Up page.
  • 11.  Login page Customer uses Login page to open account and accesses the website content.  Home page Products are displayed in home page with option of catalogue. It is similar for all users.
  • 12.  Cart Page After logging in customer/user can access the cart having the selected products to buy.  Order Page This page will be having all the orders placed by one user id, it will show if the order is still pending or completed with quantity of product and all other information about it.
  • 13. 2nd User:  Staff Page Staff member with assigned id can access this page only. It will show all the orders placed by all the customers. 3rd User:  Admin Page The admin page is restricted only for administrators where they can add new products, catalogue etc.
  • 14. Github Link: https://github.com/MeharunisaAshraf/Django_Eshop Website link: http://mehrunisaashraf.pythonanywhere.com/ Demo Video: https://drive.google.com/file/d/1ENPFdK_R2C- JyvTh1Z4ZamiDskcyRrMS/view?usp=sharing CONCLUSION: The Django framework gives us a simple and reliable way to create online website. It provides powerful functionalities and concise syntax to help programmers deal with the database, the web page and the inner logic. Within the Django framework, we have successfully accomplished the requirements of the system. Once this system passes the testing phase, it can be used to serve customers. It will make the work for staff/admin to manage the data much easier. In short, this system will bring great user experience to both customers and staff members. The only limitation for this system is that although the developers have been testing it with various use cases, it may still encounter problems during real time use. However, even if that happens, the flexibility of Django would provide a simple way to fix the problem, as well as add new features into the system.