摘 要
近几年来,网络信息技术日新月异,整个网络环境相较于前几年有了深刻的变革,这些网络信息相关的技术不仅让我们更加实质性地享受到互联网带给我们的便利、让互联网更加泛化和深化,同时也让我们和互联网相关的开发人员更加直观更加方便地去开发互联网应用。在此同时,电商网站也有了长足的发展,如今的电商已经不是只有淘宝京东几家独大,想要开网店必须去淘宝京东开店铺的局面也不复存在。技术的发展让电商网站的建立简单了起来。本文就结合当前较为主流的Python Web框架Django来搭建一个B2C线上电子产品销售平台的电商系统,该系统使用B/S架构和前后端分离的模式进行设计,后端使用Django Rest Framework向前端提供API,前端使用国内流行的Vue框架进行数据展示。本文将从多个维度去阐述和解释系统的各个模块和各种功能,在实现电商网站的基本需求的同时,还对电子产品销售相关的内容进行优化,以及对其他附加功能的实现。本文最终将实现一个B2C的电子产品销售平台,用户可以进行注册会员、浏览商品、购买商品和管理信息等的操作,管理员可以也可以轻松地管理商品信息、用户信息等等操作。
关键词: Python;Django;Django REST framework;电商平台;电子产品
Abstract
In recent years, the network information technology has been changing with each passing day, and the entire network environment has undergone profound changes compared to previous years. These network information-related technologies not only allow us to more substantively enjoy the convenience brought to us by the Internet, but also make the Internet more ubiquitous. Intensification and deepening also make it more intuitive and convenient for us and Internet-related developers to develop Internet applications. At the same time, the e-commerce website has also made considerable progress. Nowadays, e-commerce is not the only dominance of Taobao Jingdong, and there is no longer any need for Taobao Jingdong to open stores. The development of technology has made the establishment of e-commerce websites simple. This article combines the current mainstream Python Web framework Django to build a B2C online electronic product sales platform e-commerce system. This system uses the B/S architecture and the front-end and back-end separation mode to design, and the back-end uses Django Rest Framework to the front-end. Provide API, front-end use of domestic popular Vue framework for data display. This article will elaborate and explain various modules and various functions of the system from multiple dimensions. While realizing the basic requirements of the e-commerce website, it also optimizes the content related to electronic product sales, and implements other additional functions. This article will eventually implement a B2C electronic product sales platform where users can perform operations such as registering members, browsing products, purchasing goods, and managing information. Administrators can also easily manage product information, user information, and other operations.
Keywords: Python; Django; Django RSET framework; Electronic business platform; electronic product
目录
摘 要 I
目录 III
第一章 绪论 1
1.1 课题研究背景及意义 1
1.2 国内外研究现状 2
1.3 本文的主要工作 3
第二章 技术选型 4
2.1 Python 4
2.2 Django 5
2.3 MySQL 6
2.4 Django Rest Framework 7
2.5 Vue 8
第三章 系统分析 9
3.1 可行性分析 9
3.2 系统需求分析 10
3.2.1 业务需求分析 10
3.2.2 用户需求 11
3.2.3 功能需求分析 12
3.2.4 非功能需求分析 14
第四章 总体设计 16
4.1 总体功能模块设计 16
4.2 数据库设计 18
4.2.1 数据表结构 18
4.2.2 数据表字段 18
第五章 详细设计与实现 25
5.1 用户模块 25
5.2 商品模块 32
5.3 用户操作模块 41
5.4 交易模块 44
5.5 后台模块 51
5.6 其他模块 52
第六章 系统测试与部署 54
6.1 测试环境 54
6.2 系统测试 54
6.3 测试内容 55
6.4 测试结果 58
第七章 全文总结 59
参考文献 60
致谢 61