1.0 KiB
1.0 KiB
name, description, metadata
| name | description | metadata | ||
|---|---|---|---|---|
| project-architecture | DjangoAdmin V3 — Django+DRF backend with Vue3+NaiveUI frontend, RBAC auth, code generator |
|
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 definitiongenerator.py+generator_config.py— auto-generates CRUD code from config.jsonmiddleware/— login + permission middleware chainutils/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.