Initial commit: 日记系统

完整的日记记录系统
- Django 后端 (diary app)
- 前端页面
- 部署脚本 (本地 + 云端)
- Nginx 配置
- 数据迁移和同步工具
This commit is contained in:
maoshen
2026-04-14 10:07:27 +00:00
commit b273789ae8
31 changed files with 1457 additions and 0 deletions

8
collect_static.py Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env python3
import os
import sys
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'diary_system.settings')
sys.path.insert(0, '/root/.openclaw/workspace/diary-system/backend')
from django.core.management import execute_from_command_line
sys.argv = ['manage.py', 'collectstatic', '--noinput']
execute_from_command_line(sys.argv)