Skip to content

Commit 10f57cf

Browse files
committed
Update config & changelog & menu
1 parent f86f58b commit 10f57cf

File tree

10 files changed

+30
-37
lines changed

10 files changed

+30
-37
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 4.0
44

5-
Released: -
5+
Released: 2025/10/12
66

77
- 增加对 uv 的介绍
88
- 升级到 SQLAlchemy 2.x

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Flask 入门教程
22

3+
> 使用 Python 和 Flask 开发你的第一个 Web 程序
4+
35
这里是《Flask 入门教程》的源码仓库。请访问[本书主页](http://helloflask.com/book/3)在线阅读本书。
46

57
如果你发现了书中的错误,或是有任何意见或建议,欢迎[创建 Issue](https://github.com/helloflask/flask-tutorial/issues/new) 反馈或提交 Pull Request 进行修正。对于较大的内容变动,建议先[创建 Issue](https://github.com/helloflask/flask-tutorial/issues/new) 进行讨论。谢谢!
68

79
![](http://helloflask.com/static/tutorial-cover-s.png)
810

9-
© 2018 [李辉](http://greyli.com)(Grey Li) / [HelloFlask.com](http://helloflask.com)
11+
© 2018 - 2025 [李辉](http://greyli.com)(Grey Li) / [HelloFlask](http://helloflask.com)
1012

1113
本书采用 [CC BY-NC-ND 3.0](https://creativecommons.org/licenses/by-nc-nd/3.0/deed.zh) 协议授权,禁止商用、演绎后分发或无署名转载。

book.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

chapters/9-organize.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Flask 对项目结构没有固定要求,你可以使用单脚本,也可以
77
先来看看我们目前的项目文件结构:
88

99
```
10+
watchlist/
1011
├── .flaskenv
1112
├── app.py
1213
├── test_watchlist.py

chapters/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flask 入门教程
22

3-
![Book cover](cover.jpg)
3+
<img src="cover.jpg" width="400px"></img>
44

55
当前版本:4.0(2025.8.16)
66

@@ -19,7 +19,7 @@
1919
* [第 9 章:组织你的代码](9-organize.md)
2020
* [第 10 章:测试](10-test.md)
2121
* [第 11 章:部署上线](11-deployment.md)
22-
* [小挑战](12-challenge.md)
22+
* [第 12 章:小挑战](12-challenge.md)
2323
* [后记](13-postscript.md)
2424

2525
## 版权信息

chapters/_templates/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "base.html" %}
22

33
{% block announce %}
4-
📌《Flask 入门教程》第 3 版已于 2022716 日发布,新版本基于 Flask 2.1.x 版本和 Python 3.6+ 版本改写。欢迎关注 <a href="https://twitter.com/greylihui" target="_blank" style="color: #526cfe">Twitter</a><a href="https://greyli.com/files/qrcode_gh.jpg" target="_blank" style="color: #526cfe">微信公众号</a>获取更多动态。
4+
📌《Flask 入门教程》第 4 版已于 20251012 日发布,新版本基于 Flask 3.x 版本和 Python 3.9+ 版本改写。欢迎关注作者 <a href="https://twitter.com/greylihui" target="_blank" style="color: #526cfe">Twitter</a><a href="https://greyli.com/files/qrcode_gh.jpg" target="_blank" style="color: #526cfe">微信公众号</a>获取更多动态。
55
{% endblock %}
66

77
{% block extrahead %}
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 为本书付费
66

7-
等等,如果你还没有为这本书付费的话,先别急着出门。访问[这里](0-pay.md)查看付费信息。谢谢你的支持!
7+
等等,如果你还没有为这本书付费的话,先别急着出门。访问[这里](pay.md)查看付费信息。谢谢你的支持!
88

99
## 留言 & 打卡 & 反馈
1010

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**李辉(Grey Li)**
66

7-
我从 2015 年开始自学编程,Python 和 Flask 是我最先学习的语言和框架。在经过一些学习和探索后,我开始写作[《Flask Web 开发实战》](http://helloflask.com/book/1)。在这本书出版的同一年成为 Flask 的维护者,也在之后的这些年里为 Flask 以及许多 Flask 扩展提交大量代码贡献。
7+
我从 2015 年开始自学编程,Python 和 Flask 是我最先学习的语言和框架。在经过一些学习和探索后,我开始写作[《Flask Web 开发实战》](http://helloflask.com/book/1)。在这本书出版的同一年成为 Flask 的维护者,也在之后的这些年里为 Flask 以及许多 Flask 扩展提交大量代码贡献。作为第一本书的升级版,我的新书[《Flask 从入门到进阶》](http://helloflask.com/book/4)也将在 2025 年 11 月出版上市。
88

99
时至今日,Flask 仍然是我最喜欢的 Python Web 框架。希望未来可以为 Flask 社区作出更多贡献。
1010

@@ -20,7 +20,7 @@ Flask(<https://github.com/pallets/flask>)是一个使用 Python 语言编写
2020

2121
![Watchlist 程序](images/7-2.png)
2222

23-
你可以访问 <http://watchlist.helloflask.com> 查看示例程序的在线 Demo。示例程序源码可以在 <https://github.com/helloflask/watchlist> 找到。如果你无法访问 GitHub,可以~~想办法让自己能够正常访问~~点击[这里](http://helloflask.com/downloads/watchlist.zip) 下载示例程序源码。阅读源码仓库中的 README.md 文件了解如何运行示例程序。
23+
你可以访问 <http://watchlist.helloflask.com> 查看示例程序的在线 Demo。示例程序源码可以在 <https://github.com/helloflask/watchlist> 找到。如果你无法访问 GitHub,可以<del>想办法让自己能够正常访问</del>点击[这里](http://helloflask.com/downloads/watchlist.zip)下载示例程序源码。阅读源码仓库中的 README.md 文件了解如何运行示例程序。
2424

2525
## 本书特点
2626

@@ -48,11 +48,11 @@ Flask(<https://github.com/pallets/flask>)是一个使用 Python 语言编写
4848
欢迎通过下面的方式提出反馈、建议和勘误:
4949

5050
* 在源码仓库[创建 Issue](https://github.com/helloflask/flask-tutorial/issues/new)
51-
* [代码厨房社区](https://codekitchen.community)发布帖子,并选择“Flask 入门教程”分类。
51+
*[代码厨房社区](https://codekitchen.community)发布帖子,并选择“Flask 入门教程”分类。
5252

5353
## 联系作者
5454

55-
其他问题可以通过邮箱 <book@greyli.com> 联系我。
55+
其他问题可以通过邮箱 <flasktutorial@greyli.com> 联系我。
5656

5757
## 相关资源
5858

mkdocs.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ theme:
77
custom_dir: chapters/_templates
88
logo: _assets/favicon.png
99
favicon: _assets/favicon.png
10+
features:
11+
- content.code.copy
1012
palette:
1113
primary: black
1214
icon:
@@ -20,7 +22,7 @@ extra:
2022
link: https://github.com/helloflask/flask-tutorial
2123
- icon: fontawesome/brands/twitter
2224
link: https://twitter.com/greylihui
23-
copyright: Copyright &copy; 2018 <a href="https://greyli.com" target="_blank" rel="noopener">Grey Li</a>
25+
copyright: Copyright &copy; 2025 <a href="https://greyli.com" target="_blank" rel="noopener">Grey Li</a>
2426
markdown_extensions:
2527
- admonition
2628
- pymdownx.details
@@ -35,21 +37,21 @@ markdown_extensions:
3537
- toc:
3638
permalink: True
3739
nav:
38-
- 简介: README.md
39-
- 封面: cover.md
40+
- 目录: README.md
4041
- 前言: preface.md
41-
- 第 1 章:准备工作: ready.md
42-
- 第 2 章:Hello, Flask!: hello.md
43-
- 第 3 章:模板: template.md
44-
- 第 4 章:静态文件: static.md
45-
- 第 5 章:数据库: database.md
46-
- 第 6 章:模板优化: template2.md
47-
- 第 7 章:表单: form.md
48-
- 第 8 章:用户认证: login.md
49-
- 第 9 章:测试: test.md
50-
- 第 10 章:组织你的代码: organize.md
51-
- 第 11 章:部署上线: deploy.md
52-
- 小挑战: challenge.md
42+
- 为本书付费: pay.md
43+
- 第 1 章:准备工作: 1-preparation.md
44+
- 第 2 章:Hello, Flask!: 2-hello.md
45+
- 第 3 章:模板: 3-template.md
46+
- 第 4 章:静态文件: 4-static.md
47+
- 第 5 章:数据库: 5-database.md
48+
- 第 6 章:模板优化: 6-advanced-template.md
49+
- 第 7 章:表单: 7-form.md
50+
- 第 8 章:用户认证: 8-auth.md
51+
- 第 9 章:组织你的代码: 9-organize.md
52+
- 第 10 章:测试: 10-test.md
53+
- 第 11 章:部署上线: 11-deployment.md
54+
- 第 12 章:小挑战: 12-challenge.md
5355
- 后记: postscript.md
5456
- 教程主页↗: https://helloflask.com/book/3
5557
- 书稿源码↗: https://github.com/helloflask/flask-tutorial

0 commit comments

Comments
 (0)