Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
6184fb19
未验证
提交
6184fb19
编辑于
1 week ago
作者:
Jon Glassman
提交者:
GitLab
1 week ago
浏览文件
操作
下载
补丁
差异文件
Change numbering and disable MD029
上级
91a30813
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
doc/user/gitlab_duo/tutorials/fix_code_python_shop.md
+8
-7
8 个添加, 7 个删除
doc/user/gitlab_duo/tutorials/fix_code_python_shop.md
有
8 个添加
和
7 个删除
doc/user/gitlab_duo/tutorials/fix_code_python_shop.md
+
8
−
7
浏览文件 @
6184fb19
...
...
@@ -691,10 +691,10 @@ wheels/
{{
<
/
tab
>
}}
{{
<
tab
title=
"README.md"
>
}}
<!-- markdownlint-disable MD029 -->
A comprehensive
`README`
file with setup and usage instructions.
```
markdown
```
`
markdown
# Bookstore Inventory Management System
A Python web application for managing bookstore inventory, built with Flask and SQLite.
...
...
@@ -721,20 +721,20 @@ A Python web application for managing bookstore inventory, built with Flask and
cd
python-shop-app
```
1
.
Create and activate a virtual environment:
2
.
Create and activate a virtual environment:
```
shell
python
-m
venv myenv
source
myenv/bin/activate
# On Windows: myenv\Scripts\activate
```
1
.
Install dependencies:
3
.
Install dependencies:
```
shell
pip
install
-r
requirements.txt
```
1
.
Set up environment variables:
4
.
Set up environment variables:
Copy
`.env.example`
to
`.env`
and modify as needed.
...
...
@@ -746,7 +746,7 @@ A Python web application for managing bookstore inventory, built with Flask and
flask run
```
1
.
The API will be available at
`http://localhost:5000/`
2
.
The API will be available at
`http://localhost:5000/`
## API Endpoints
...
...
@@ -763,7 +763,8 @@ Run tests with `pytest`:
```
python
python
-
m
pytest
```
````
<!-- markdownlint-enable MD029 -->
{{
<
/
tab
>
}}
{{
<
tab
title=
"requirements.txt"
>
}}
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录