文档:统一使用 python3.12 作为开发 Python 命令

This commit is contained in:
ila
2026-07-06 16:46:35 +08:00
parent 14eae57643
commit abfe00103c
3 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -38,13 +38,15 @@
| 用途 | 命令 |
| --- | --- |
| 创建虚拟环境 | `python3 -m venv .venv` |
| 创建虚拟环境 | `python3.12 -m venv .venv` |
| 安装依赖 | `.venv/bin/pip install -r requirements.txt` |
| 数据库迁移 | `.venv/bin/python manage.py migrate` |
| 创建管理员 | `.venv/bin/python manage.py createsuperuser` |
| 本地开发 | `.venv/bin/python manage.py runserver` |
| 测试 | `.venv/bin/python manage.py test` |
> 开发环境使用系统已安装的 **Python 3.12.12**(命令 `python3.12`),不依赖 `python3` 别名。
## 四、SQLite 上线纪律
- 上线前验证 SQLite 支持 JSON1。