# python_web **Repository Path**: Si1enceLee/python_web ## Basic Information - **Project Name**: python_web - **Description**: 基于django的销售管理系统开发 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 1 - **Created**: 2021-04-02 - **Last Updated**: 2021-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 18信管实训 #### 介绍 基于django的销售管理系统 #### 软件架构 本销售管理系统采用Django框架开发,数据库采用sqlite #### 开发教程 1. 安装python环境,创建虚拟环境python_web conda create -n python_web python=3.7 2. 进入虚拟环境 activate python , 安装 Django , pip install django == 2.1.5 3. 创建Django 框架 django-admin startproject hjsms 4. 启动Django服务器,python manage.py runserver 0.0.0.0:81 看看是否启动 5. 然后创建销售模块 进入项目根目录 python manage.py startapp saleRe52XCs 6. views.py 添加 from django.http import HttpResponse def listorders(request): return HttpResponse("下面是系统中所有的订单信息。。。") 7. urls 添加映射 from sales.views import listorders urlpatterns = [ path('admin/', admin.site.urls), path('sales/orders/', listorders), ] 8. url路由拆分 #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)