大二下期Django母婴商城实训项目报告

  • 项目名称:母婴商城系统
  • 作者:李虹糈
  • 项目时间:2021年12月28日

    Django母婴商城实训项目报告

    • 1、摘要
    • 2、系统开发的工具与相关技术
      • 1.1、JetBrains Pycharm
      • 1.2、Python
        • 1.2.1、Python概述
        • 1.2.2、Python的应用
      • 1.3、Django框架
        • 1.3.1、Django概述
        • 1.3.2、Django的优点
          • 一、拥有全自动的管理后台
          • 二、强大数据库功能Django
          • 三、url动态配置
          • 四、强大的模板系统
          • 五、表单处理
          • 六、强大的缓存机构
          • 七、国际化
        • 1.3.3、Django的开发流程
      • 1.4、Mysql数据库
    • 3、网上商城的需求分析
      • 2.1、功能需求分析
      • 2.2、系统功能结构图
      • 2.3、系统功能模块设计
        • 2.3.1、具体功能模块
        • 2.3.2、管理员系统管理流程图
      • 2.4、数据库设计
    • 4、项目详细设计
      • 4.1、搭配开发环境
      • 4.2、项目的功能配置
      • 4.3、设置模板信息
      • 4.4、添加中间件
      • 4.5、配置数据库
      • 4.6、配置静态资源和媒体资源
      • 4.7、设置路由分发规则
      • 4.8、设置商城路由地址
      • 4.9、定义商城的数据模型
        • 4.9.1、数据迁移创建数据表
        • 4.9.2、数据的导入与输出
      • 5.1、项目的视图函数
      • 5.2、商城基础模板设计
      • 5.3、Session的配置与操作
    • 5、项目运行效果截图
    • 6、结论及感想

1、摘要

计算机网络诞生仅有五十多年,但却推动着人类社会以前所未有的速度前进着,并且无时无刻不影响着我们的日常生活。
人们在互联网中看到了商机,促使九十年电子商务的诞生,人们从互联网经济中不断获得了便利,促进了电子商务在中国迅猛
发展。随着网络技术日益成熟,互联网经济的优势也愈发明显。对于商家来说,电子商务成为了降低成本、减少风险的宝藏
,对于日益忙碌的消费者来说也是能提供更多便利的一种选择。所以,开发一个网上商城是很有必要的。
Python语言是一种完全面向对象是解释型语言,具有语法简单、易学易读、可以跨平台使用,运行速度快等优点。
Django作为Python最受欢迎的Web框架之一,被广泛应用于网站的快速开发,具有全自动的管理后台,能够实现动态配置url,提供了便于操作的数据库API,模板系统也具有强大的功能。基于以上优点,本文基于Python技术,采用Django框架,开发了网上商城系统。
其中,网上商城的功能模块分为前台和后台,前台运用了Bootstrap框架,包含了浏览商品、购买商品、搜索商品、订单、购物车等功能模块;后台包含了对用户信息、商品信息、商品类别、商品尺寸、商品标签的管理功能模块。
关键词:网上商城;Python;Django框架;
ABSTRACT:
Computer network was invented just 50 years ago, but it is promoting social to develop at an unprecedented rate and
permeating every aspect of your life. People saw business opportunities from computer network, which leading to the birth of
e-commerce. Then, people achieved convenience constantly from the Internet economy, which leading to the rapid
development of e-commerce. With the increasingly maturing of network technology, the advantages of e-commerce are
more and more obvious. To the merchants, e-commerce is a treasure which can lower the cost and risks. To the customers who are gradually busy, e-commerce is an option that provides convenience. Thus, developing an online mall shopping
system is necessary.
Python is an interpreted language which is fully object-oriented. It has lots of advantages such as easy grammar. Also, it’s
quite easy to read and learn. Python can run fast at different environments. Django is one of the most popular web
framework of python, which is widely used into developing website quickly. Django has automatic management background.
It can configure URL dynamically. Besides, Django provides convenient APIs for using database and has strong template
system. Based on above advantages, this article is about developing online mall shopping system using Django framework
and based on Pyhton.
Online mall shopping system’s function modules can be divided into foreground and background. Using bootstrap
framework, foreground’s function modules includes many modules such scanning commodity, purchasing commodity,
remarking commodity and express query. Background function modules includes revising users’ information, commodities’
information, advertisements’ information, commodities’ categories, commodities’ tags and issuing advertisement, checking
orders, managing remarks, checking report forms.
Key words:Online mall shopping system;Python;Django framework;

2、系统开发的工具与相关技术

1.1、JetBrains Pycharm

你可能感兴趣的:(学习总结,笔记,django,python)