# medical_li_Second **Repository Path**: fang-zhenghao/medical_li_Second ## Basic Information - **Project Name**: medical_li_Second - **Description**: 智慧医疗医学影像自动标注云平台 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-03-13 - **Last Updated**: 2023-06-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FlaskProject ## 介绍 flask框架开发的项目 flask+Mysql+python #### 版本 pip install -i https://pypi.douban.com/simple Flask-SQLAlchemy pip install flask_script pip install flask-migrate 2021-06-03 herb `pip install flask-bootstrap` 2021-06-05 ## 功能 #### 测试页面显示 urls 将地址 test 绑定到 views.py 的 index 函数,显示 test.html 页面 [http://127.0.0.1:8000/index/](http://127.0.0.1:8000/index/) #### 测试post功能 urls 将地址 test-post 绑定到 my_post.py 的 post1 函数,显示 post_from.html 页面 当页面点击按键提交 post 时,向 test-post 提交 post,post1 函数开始处理,将 post 提交的值显示在界面上 [http://127.0.0.1:8000/test-post/](http://127.0.0.1:8000/test-post/) #### 上传图像并显示 ## 项目部署git教程 1. 用于在目录中创建新的 Git 仓库 `git init` 2. 从现有 Git 仓库中下载项目,repo仓库,directory:本地目录 `git clone ` 这里写为 `git clone git@gitee.com:herb-seven-hundred-and-eleven/flask-project.git master` 克隆其他分支 `git clone -b medical-li git@gitee.com:herb-seven-hundred-and-eleven/flask-project.git medical_li` 3. 添加文件和文件夹到暂存区(需在目录下操作) `git add -A` 4. 将暂存区内容添加到仓库中 `git commit -m "提交信息"` 5. 设置 remote 将地址添加为 origin `git remote add origin git@gitee.com:herb-seven-hundred-and-eleven/django-project.git` 6. 上传远程代码 `git push` 7. 下载远程代码 `git pull` 8. 查看仓库状态 `git git status ` 9. 切换分支 `git checkout medical_li` ## 项目运行 1. 直接运行 `python run.py` 2. 后台运行 `nohup python run.py` 3. 访问 [http://127.0.0.1:8000/test](http://127.0.0.1:5000/index),可以看到页面: