# user-info **Repository Path**: ppshux/user-info ## Basic Information - **Project Name**: user-info - **Description**: user-info - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-06 - **Last Updated**: 2026-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # user_info Vue 3 + Django 练习项目:用户列表、创建、编辑资料,前后端 JSON 联调闭环。 ## 运行 ```text backend/ pip install -r requirements.txt && python manage.py migrate && python manage.py runserver web/ npm install && npm run dev ``` 接口默认 `127.0.0.1:8000`,前端默认 Vite 端口;`web/src/js/http/api.js` 的 `baseURL` 需与后端一致。两处进程都开起来再联调。 ## 说明 - 路由里的 `id` 是 **UserProfile** 主键,不是 `User.id`。 - CORS 按本机 Vite 端口配置;`@csrf_exempt` 仅便于本地跨域 POST,正式环境另做安全策略。 接口:`GET api/get_list/`,`POST api/create_item/`、`api/update_item/`(见 `backend/api/`)。