Django-based graduation design of large supermarket management system

Django-based graduation design of large supermarket management system

 

summary

        With the continuous development of social economy, supermarkets, as an important retail format, have become one of the main places for people's daily shopping. However, the traditional manual management method has many disadvantages, such as low efficiency and inaccurate information, which cannot meet the needs of modern management.

        In order to improve the management level and service quality of supermarkets, it is necessary to develop an efficient and intelligent supermarket management system. As a popular programming language, Python has the advantages of being simple and easy to learn, strong openness, and supports a variety of libraries, and has been widely used. Therefore, the development of a supermarket management system based on Python has become a feasible solution.

        I choose to use Python for development because python is really convenient, it can be realized without typing too much code, and it can be used flexibly in many applications, including a series of very successful applications in the direction of web development , At the same time, in order to facilitate development and improve development efficiency, a series of development frameworks have emerged. Django is a very good framework, because many things in the djangok framework have already been configured, so it can help us quickly. A system application is built, such as templates, data processing, website development, etc., so that we can complete most of the development tasks with only Django.

Key words

Python; Django; MySQL database; smart supermarket;

Abstract

        In 2023, people's daily consumption level is also gradually improving, the society is becoming more and more stable, and people's needs are getting better and better. Now many super-large smart supermarkets provide convenience for everyone's better life. In order to better manage these large smart supermarkets, it is imperative to develop a fully

        functional management system. This system takes IDEA as the development tool, MySQL database system as the background data management, EdrawMax draw the necessary graphics, so that we can better see the situation of the system, establish a clear understanding of the system, complete the product supermarket operation information management and management, as well as all kinds of information browsing, query, addition, deletion, checking and other operations.Realizing the essential information management and management of various commodities, the system expedites the transaction efficiency of commodity sales, making it convenient for users.I chose to adopt the Python development, Because the python is really convenient, Can be implemented without tapping too much code, It can also be flexibly used in many aspects of the application, There are also a series of very successful applications in the Web development direction, Also, in order to facilitate the development, A series of development frameworks have emerged to improve development efficiency, Django Is just a very good framework, Because a lot of the djangok frame is already configured, So it helps us to build a system application very quickly, Such as a template, data handling, Website development and so on, Let's do most of the development tasks with Django.

Keyword

Python; Django; MySQL database;Smart supermarket

Table of contents

1 The topic and its significance

1.1 Name of the project

1.2 Contents of project design

1.3 Significance of project design

2. Literature review

2. Refer to the name of the bibliographic item

2.2 Significance of References

2.3 Techniques used in reference literature

2.4 Evaluation of references

3. Design concept

3.1 Introduction to development tools

3.2 Development Technology Introduction

4. Project design

4.1 Basic download and configuration of django

4.2 Configuration of models

4.3 view configuration

4.4 urls configuration

4.5 MySQL database design

4.6 Functional module design of smart supermarket

5. Solution to the problem

5.1 Addressing needs identification

5.2 System Feasibility Analysis

6. Summary

references

thanks


1 The topic and its significance

1.1 Name of the project

        I chose to use Python as the language and use the django framework to do the project. My project name is Django-based smart supermarket management.

1.2 Contents of project design

        The content of smart supermarket management can basically be divided into two aspects of management functions, namely basic information management and operation management. This supermarket management system was developed for this purpose.

1.3 Significance of project design

        After our research and comparison of the supermarket industry, we found that the use of advanced computer information processing methods can greatly save manpower and material resources, improve the conditions of employees, reduce the intensity, and help timely feedback on product sales and inventory. Through analysis and feedback, managers can quickly make correct decisions according to market changes, thereby improving the efficiency of supermarket operation and management.

2. Literature review

2. Refer to the name of the bibliographic item

Design of enterprise shipping logistics cost evaluation system based on Python+Django+MySQL

2.2 Significance of References

        A well-known radiator manufacturer in China is committed to providing customers with the highest quality cooling solutions and products. Its products cover many fields such as personal computers, mobile phones, servers, and communication switches. It cooperates with Lenovo, HP, Dell, Huawei, etc. Cooperating with international first-line brand manufacturers, mainly customized production, therefore, enterprises urgently need a system that can quickly and reliably complete customized product quotations . This article develops the information technology development of the enterprise shipping logistics cost evaluation system. The system is developed online based on the Django framework. The purpose is to enable the enterprise to complete the automatic collection of shipping information, so that the enterprise can provide better and more reasonable products.

quotes [1-2].

2.3 Techniques used in reference literature

        Based on the python language, we have adopted a new architecture, namely Python3.6.1+Pycharm5.0.6+Django1.11+MySQL5.7.18, to realize the development of online web applications, and use the relational database MySQL to realize the logistics of goods Effective management of information. Django is a powerful Python web development framework. It can build database-driven websites quickly and concisely, and can use its module system to realize the development of HTML web pages. This method is very popular in today's society and can effectively complete the page. padding and layout .

2.4 Evaluation of references

        After reading it, it was of great help to the project development of my graduation project. The author's management of the departure goods and logistics was a great inspiration for me to make a smart supermarket management system.

3. Design concept

3.1 Introduction to development tools

        The development of the smart supermarket management system is completed on the Windows system, using Python and django to complete the development. After the development is completed, the project can run in any development environment. The tools we used for this development are IDEA, MySQL and Vision, which are briefly introduced below.

        idea is an excellent programming tool that enables efficient and flexible code editing to meet various needs. It not only provides sufficient support for advanced features like Django, but also can greatly speed up your development efficiency.

        lMySQL is a relational database used in the research and development of engineering projects. It is small, open, free, easy to learn and install, and is favored by developers. It is the first choice for most online businesses. We store consolidated usage data in this database, which is then programmatically read and displayed on the website.

        Vision, one of the Office components, can be used to draw corresponding graphics after installation, which helps us better understand the system and have a clear understanding of the system. It is the most widely used modeling tool in programming.

3.2 Development Technology Introduction

        Python is powerful and versatile, including many very successful web development applications. Overloading, templating, data manipulation, etc. It can help us solve many development problems, such as:

        The MySQL relational database can effectively improve the efficiency and flexibility of the management system. It can store a large amount of data in multiple tables instead of storing it in a large memory separately, so that data access can be realized more effectively. The SQL language used by MySQL is the most common standard programming language used by database systems, which can meet the needs of various application scenarios. The MySQL software system has been double-certified and is divided into community edition and commercial edition. Its small size, fast operation, low overall cost of ownership, especially its open source features make it an ideal database system for small websites and the first choice for medium-sized development sites.

4. Project design

4.1 Basic download and configuration of django

After downloading Python and idea, create a new project, and then add the python environment under the interpreter project structure

 

        Then after loading the python environment, you can open the terminal to enter the environment required for installation, pip install Django, pip install PYMYSQL, etc.

 

 

After installing the environment required by django, we can start creating applications

 django-admin startproject marks

Enter the marks path, run python manage.py startapp  app

Start the website (development server) in the root directory of the website and run:

 python manage.py runserver

4.2 Configuration of models

 

4.3 view configuration

 

 

 

4.4 urls configuration

 

4.5 MySQL database design

MySQL is used to store data, the following are the data tables of the major modules

Table 1

field name

type of data

Is it NULL

Remark

id

varchar(30)

NO

record number

ty_user_namea

varchar(70)

NO

user account

you_pass_word

varchar(70)

NO

user's password

ty_namee

varchar(70)

NO

user's name

ty_agee

int

NO

user's age

ty_gendere

varchar(40)

NO

user's gender

ty_phonee

varchar(100)

NO

contact number

ty_addresse

varchar(80)

NO

contact address

tt_typee

int

NO

user's identity

Table 2

field

type of data

NULL is allowed

instruction manual

t_phonea

varchar(50)

NO

Member's account

t_total

double

NO

Total consumption

r-createa_time

varchar(50)

NO

time of recording

t_level_aid

varchar(50)

NO

membership level

table 3

field

type of data

NULL is allowed

instruction manual

id

varchar(30)

NO

record number

t_namee

varchar(70)

NO

product name

t_pricee

double

NO

The selling price of the product

t_total

double

NO

Goods in stock

t_create_timee

varchar(50)

NO

time of recording

t_type_ide

varchar(50)

NO

type of product

Table 4

field

type of data

NULL is allowed

instruction manual

id

varchar(50)

NO

record number

saltTotal

double

NO

total sales

discounte

double

NO

discount offer

payTotal

double

NO

actual amount paid

create_timee

varchar(90)

NO

time of recording

member_ide

varchar(50)

YES

Member's account

field

type of data

NULL is allowed

instruction manual

id

varchar(30)

NO

record number

nameee

varchar(70)

NO

type name

create_timee

varchar(90)

NO

time of recording

table 5

field

type of data

NULL is allowed

instruction manual

id

int

NO

record number

salPrice

double

NO

The selling price of the product

saltTotal

double

NO

number of purchases

goowd_id

varchar(50)

NO

item number

several_id

varchar(50)

NO

Sales order number

Table 6

field

type of data

NULL is allowed

instruction manual

id

int

NO

record number

stocwekPrice

double

NO

purchase price

stocwwkTotal

double

NO

The number of purchases

gooewd_id

varchar(50)

NO

item number

stocewk_id

varchar(50)

NO

Purchase order number

Table 7

field

type of data

NULL is allowed

instruction manual

id

varchar(50)

NO

record number

t_even

varchar(20)

NO

grade name

t_totawl

double

NO

Total consumption

t_discowunt

double

NO

discount offer

Table 8

field

type of data

NULL is allowed

instruction manual

id

varchar(50)

NO

record number

stocwwkTotal

double

NO

The total amount purchased

creawwte_time

varchar(19)

NO

time of recording

4.6 Functional module design of smart supermarket

        It is designed for the main addition, deletion, modification, viewing, query, and screening of the system, and the functional modules are designed according to these main operations, which greatly facilitates management.

5. Solution to the problem

5.1 Addressing needs identification

        Software requirements analysis is an integral part of the software life cycle, which aims to determine the requirements of the project and break them down into more details. This process requires a continuous and in-depth understanding of capabilities and performance in order to optimize and decompose requirements to achieve the best results. During the software planning phase, in-depth analysis of well-defined phases is required to identify and find effective solutions, so that the performance of the software can be continuously improved, which can determine the success or failure of the project and software product. Therefore, the software must be strictly checked, checked, and good methods must be adopted.

        在通用信息系统的开发中,规划很重要,提供有关用户需求的描述性信息以供分析。软件设计应该规范不仅是软件开发人员的工作,用户也起着重要的作用。用户需要提前提出对软件的特性和性能的要求,并澄清一些不清楚的地方。软件分析师必须认真了解用户的需求,进行研究分析,最后将用户“how to how”的需求转化为实现模型和详细的软件,具体写出体现用户需求的软件需求。

        经过大量研究,确定目标大致为以下三个部分:

        u 通用功能:通用功能包括三部分:用户登录、注销、编辑个人信息和更新用户密码。使用系统提供的功能,在用户登录后判断用户身份。

        管理基础信息包含:客户信息管理、配送服务控制、产品信息管理、合作伙伴设置、信息管理报警功能,可以实现增删查询。还提供了产品信息列表。

        零售业务管理主要是对产品的所有权、售出状况和商品销售统计管理,以确保产品的售出。这些信息可以通过录入、查看、查看历史和统计销售量来实现。那天。

5.2 系统可行性分析

        有效性分析包括两个具体方面:可行性分析和创建新系统的可能性。需求在前面的研究中已经详细确定,这里不再赘述。性质、性能和效率。

u技术可行性分析

(1)软件分析

B)Windows操作系统具备人机交互的良好性,它的用户界面简单易懂,而且相关程序也易于使用。此外,还有许多基于Windows的软件开发工具,易于学习、开发和使用。

b) 从可用性来看,MySQL不仅易于使用和掌握,而且能够满足本题的需要,最主要一点免费。

c) django这个系统很完善,有很多书籍和文档可以学习和参考,所以了解这个技术已经不是问题了。

(2) 员工评价

系统简单易用,用户无需拥有基本的商务电脑,系统用户申请本站无任何问题。

u 经济可行性分析

通过财务研究,可以更好地分析组织的业务和投资情况,估算建设和维护的成本。因为这个题目是超市的经营,作者负责作品的开发,所以不需要太多的资金投入,所以也能做生意。

u运营可行性研究

功能能力是指对组织的影响、现有人员和系统现有机构、设施、环境的变化,以及人员额外培训的可能性。现在我们的信息很普及,不同员工的水平都很高,所以他们工作。

6.总结

        我做的这个是为提高大型超市管理效率而开发的超市管理系统。具体而言,与现有系统相比,产品注册和销售库存得到了极大改善。这主要系统的开发是python和MySQL和Django技术。但是由于本系统开发时间较短,对Django框架的理解并不深入。因此,这个系统也存在一些缺陷。由于自己的技术不够,又很多的细节功能自己都没有做出了,比如筛选选择高级查询这些。

注释

登录这个的网址是登录页面http://127.0.0.1:8000/marks/login/

 

参考文献

[1]《信息与电脑》|2013年第008期|7-8,10-11|共4页 张海文; 2022-08-18

[2] 沈健 程瑞龙  《移动信息》 2022年第9期0028-0030,共3页

[3] (美) [弗格森]Derek Ferguson 著. JSP 程序调试实用手册[M]. 电子工业出版社,2001. 62~87

[4]《电脑知识与技术:学术版》|2022年第5期|61-63|共3页 袁明坤; 曾丽;

2022-9-15

[5] 李楠, 李志强编著. 网站开发与网页制作[M]. 人民邮电出版社, 2000. 132~186

[6]  黄梯云,李一军. 管理信息系统导论[M]. 北京:机械工业出版社,2004

[7]  于瑶瑶. 企业进销存管理系统的设计与实现[D]. 山东:山东大学,2009

[8]  《数据库系统概论》(第4版),王珊 萨师煊 编著,高等教育出版社, 2006.

[9]  金澜.MySQL索引是如何形成的[J].计算机与网络,2022,48(02):42-43. [6]  蔡兴壮,解皓.基于C/S模式的无纸化考试系统的设计与实现[J].中国新通信,2017,19(01):129.

[10] 《医疗卫生装备》|2015年第9期|129-132|共4页 李向东; 云庆辉; 孙咏梅; 晋虎; 2022-08-17

[11] 《微型电脑应用》|2020年第1期|26-29|共4页 赵新苗; 谢清辉; 颜依铃; 林雪锋; 杜建辉; 2022-8-18

致  谢

        首先,我要感谢我的指导老师对我毕业设计过程中的悉心指导和不断鼓励。他在选题、研究方向以及论文结构等方面给予了我很多宝贵的建议,并且在遇到困难时给予了我不计其数的帮助和支持。没有他的认真指导和不断关注,我无法完成这篇毕业论文。同时,我也要感谢学院的各位老师和同学们,他们在毕业设计期间给我提供了充足的时间和空间,使我能够专注研究,全身心地投入到毕业论文的写作工作中。

        此外,我还要感谢我所从事的公司,他们为我提供了必要的数据、资源和技术支持。在毕业设计的整个过程中,他们给予了我很多的帮助,为我提供了一个良好的研究环境和条件。

        最后,我要感谢所有曾经帮助过我的人,包括家人、朋友和同学们。他们在我遇到困难、疑惑或者迷茫时,给予了我最坚定的支持和鼓励。有了他们的陪伴和帮助,我才能顺利地完成毕业设计的全部工作。同时感谢我的父母,他们在论文期间与我交流,分担我的心理压力,在日常生活中给予我帮助,在学习精神上鼓励我。

        最后,向这群心甘情愿帮助我的人表示感谢和衷心的感谢。

 

Guess you like

Origin blog.csdn.net/m0_56073435/article/details/131338192