fix: complete v1.2 account and profile P0 fixes

This commit is contained in:
2026-08-10 00:12:53 +08:00
parent 587962f9c9
commit 97ca20413e
14 changed files with 346 additions and 12 deletions
+11 -1
View File
@@ -39,9 +39,19 @@ make run
管理后台位于 `http://127.0.0.1:8000/admin/`。创建管理员:
```bash
make local-admin
```
默认本地测试账号为 `local_admin` / `LocalAdmin2026!`。该命令仅允许在
`DJANGO_DEBUG=true` 时运行,不会接触或修改生产管理员。需要自定义时:
```bash
cd backend
../.venv/bin/python manage.py createsuperuser
../.venv/bin/python manage.py init_local_admin \
--username jacky_local \
--password '仅用于本机的测试密码' \
--reset-password
```
## 测试