feat: 多用户系统改造(数据模型 + 认证 API)

This commit is contained in:
maoshen
2026-04-15 02:59:36 +00:00
parent 75423d4e0e
commit e6aecd2752
13 changed files with 283 additions and 13 deletions

7
migrate_multiuser.py Normal file
View File

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