meine
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…
Python★ 50
一个基于Django的博客项目,也可以当做一个文档管理网站使用,自带评论、定时任务等功能,界面简约而不简单
一个以 Django 框架搭建的个人博客系统。
| 层级 | 技术 |
|---|---|
| 后端框架 | Django 2.2 + Python 3.9 |
| 数据库 | MySQL(utf8mb4) |
| 缓存 / 消息队列 | Redis |
| 异步任务 | Celery 4.4(Worker + Beat) |
| 搜索引擎 | Whoosh + Jieba 中文分词 + django-haystack |
| 前端 | Bootstrap 4 + jQuery |
| 容器化 | Docker + Gunicorn + Supervisord |
| 文档 | 说明 |
|---|---|
| 产品需求规格说明书 | 产品需求,包含功能列表和非功能需求 |
| 架构设计文档 | 技术选型、模块划分、部署架构 |
| 数据库设计文档 | 实体定义、关系说明、设计决策 |
| API 接口文档 | 各应用 JSON API 端点 |
# 构建镜像
docker build -t hopetree/izone:lts .
# slim 镜像(国内构建)
docker build --build-arg pip_index_url=http://mirrors.aliyun.com/pypi/simple/ \
--build-arg pip_trusted_host=mirrors.aliyun.com \
--build-arg debian_host=mirrors.ustc.edu.cn \
-f Dockerfile-slim -t hopetree/izone:lts .
# 运行(需要预先启动 MySQL 和 Redis)
docker run -d \
-e IZONE_MYSQL_HOST=mysql_host \
-e IZONE_MYSQL_PASSWORD=your_password \
-e IZONE_REDIS_HOST=redis_host \
-p 8000:8000 \
hopetree/izone:lts
# 安装依赖 python -m venv env source env/bin/activate pip install -r requirements.txt # 数据库迁移 python manage.py migrate # 创建管理员 python manage.py createsuperuser # 构建搜索索引 python manage.py rebuild_index # 启动开发服务器 python manage.py runserver # 启动 Celery(可选,异步任务需要) celery -A izone worker -l info celery -A izone beat -l info
关键配置通过环境变量注入,完整列表见 架构设计文档。
| 变量 | 说明 | 默认值 |
|---|---|---|
IZONE_DEBUG |
调试模式 | True |
IZONE_MYSQL_HOST |
MySQL 主机 | 127.0.0.1 |
IZONE_MYSQL_PASSWORD |
数据库密码 | python |
IZONE_REDIS_HOST |
Redis 主机 | 127.0.0.1 |
IZONE_TOOL_FLAG |
启用在线工具 | True |
IZONE_API_FLAG |
启用 REST API | False |
izone/
├── izone/ # Django 项目配置(settings/urls/wsgi)
├── apps/ # 所有 Django 应用
│ ├── blog/ # 核心博客应用
│ ├── oauth/ # 自定义用户模型 + OAuth 认证
│ ├── comment/ # 评论与通知系统
│ ├── easytask/ # Celery 异步任务
│ ├── api/ # REST API(条件启用)
│ ├── tool/ # 在线工具(条件启用)
│ ├── monitor/ # 服务监控
│ └── ... # webstack, resume, flow, portinfo, rsshub
├── templates/ # 共享模板
├── utils/ # 共享工具(Markdown 扩展等)
├── docs/design/ # 设计文档
├── Dockerfile
└── manage.py
more like this
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…
Create and add progress bars, Office365 Files and Dropbox Paper papers by labels and link them to your Todoist tasks.
search projects, people, and tags