2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
ss
2025-08-27 21:11:48 +08:00
2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
2019-07-17 16:36:59 +08:00
2026-01-09 18:07:01 +08:00
2020-11-20 14:06:42 +08:00
2020-11-20 14:06:42 +08:00
2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
2019-07-29 15:28:02 +08:00
2019-07-31 17:12:55 +08:00
2023-10-23 00:29:29 +08:00
2026-01-09 18:07:01 +08:00
ss
2025-08-27 21:11:48 +08:00
2022-02-23 16:51:24 +08:00
ss
2025-08-27 21:11:48 +08:00
2019-08-16 18:23:51 +08:00
2023-10-23 00:29:29 +08:00
2026-01-09 18:07:01 +08:00
2026-01-09 18:07:01 +08:00
ss
2025-08-27 21:11:48 +08:00
ss
2025-08-27 21:11:48 +08:00
2026-01-09 18:07:01 +08:00
ss
2025-08-27 21:11:48 +08:00
ss
2025-08-27 21:11:48 +08:00
ss
2025-08-27 21:11:48 +08:00
ab
2023-10-05 00:55:03 +08:00
2023-11-22 23:31:29 +08:00
2026-01-09 18:07:01 +08:00
2023-10-23 00:29:29 +08:00
2023-10-23 00:29:29 +08:00
2023-10-23 00:29:29 +08:00
a
2023-10-28 00:40:32 +08:00
2023-10-23 00:29:29 +08:00

Python Flask订餐系统

环境要求

  • Linux系统
  • Python 3.9+
  • MySQL 5.7+

启动服务

# 本地开发环境
export ops_config=local && python manager.py runserver

# 生产环境
export ops_config=production && python manager.py runserver

数据库配置

数据库连接信息在 config/base_setting.pyconfig/production_setting.py 中配置。

生成ORM模型

使用flask-sqlacodegen自动生成模型

flask-sqlacodegen 'mysql://root:password@host:port/food_db' --outfile "common/models/model.py" --flask
flask-sqlacodegen 'mysql://root:password@host:port/food_db' --tables user --outfile "common/models/user.py" --flask
Description
No description provided
Readme 110 MiB
Languages
Python 89.6%
JavaScript 8.3%
CSS 1.1%
HTML 0.8%