fix: complete v1.2 account and profile P0 fixes
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
## 测试
|
||||
|
||||
Reference in New Issue
Block a user