Files
DjangoAdmin_Django_NaiveVue/.claude/memory/project-architecture.md
T
2026-09-16 13:30:07 +08:00

22 lines
1.0 KiB
Markdown

---
name: project-architecture
description: DjangoAdmin V3 — Django+DRF backend with Vue3+NaiveUI frontend, RBAC auth, code generator
metadata:
type: project
---
DjangoAdmin 数据中台 V3: enterprise-grade data platform with Django 6 backend and Vue3+NaiveUI+Vite frontend.
Key structure:
- `application/` — each subdirectory is a standalone Django app (user, role, menu, dept, dict, generator, etc.)
- `ui/` — Vue3 frontend (pnpm, TypeScript, NaiveUI, TailwindCSS)
- `config.json` — code generator model definition
- `generator.py` + `generator_config.py` — auto-generates CRUD code from config.json
- `middleware/` — login + permission middleware chain
- `utils/R.py` — unified API response wrapper `{code, msg, data}`
Auth: JWT (SimpleJWT), RBAC with menu/button/data permissions.
**Why:** Understanding this structure is essential for navigating and modifying any part of the system.
**How to apply:** When adding features, create a new app under `application/` following existing patterns. Use `generator.py` for boilerplate CRUD.