feat: 使用 Flask 重构网站,增加登录注册功能 🐶

- Python Flask 3.1 后端
- 用户注册/登录功能
- SQLite 数据库
- 响应式设计
- 默认管理员: yunxiafei / xu123654
This commit is contained in:
root
2026-03-11 21:31:45 +08:00
parent a3726e5a8c
commit c337481daa
9 changed files with 594 additions and 119 deletions

View File

@@ -1,3 +1,44 @@
# my_one_web
# My One Web - 云下飞的个人网站
云下飞的个人欢迎页面 🐶
基于 Python Flask 构建的个人网站,支持登录注册功能。
## 功能特性
- 🎨 精美的欢迎页面
- 🔐 用户注册功能
- 🔑 用户登录/登出功能
- 💾 SQLite 数据库存储
- 🐶 小白倾情打造
## 技术栈
- Python 3.12
- Flask 3.0
- Flask-Login
- Flask-SQLAlchemy
- SQLite
## 安装运行
```bash
# 安装依赖
pip install -r requirements.txt
# 运行应用
python app.py
```
## 默认账户
- 用户名: `yunxiafei`
- 密码: `xu123654`
## 访问地址
- 首页: http://localhost:5000
- 登录: http://localhost:5000/login
- 注册: http://localhost:5000/register
---
Made with ❤️ by 小白 🐶