# antonio-neves/gestao-escolar architecture

> Architecture diagram of the GitHub repository antonio-neves/gestao-escolar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/antonio-neves/gestao-escolar
- Repository: https://github.com/antonio-neves/gestao-escolar

## Overview

This is a Django school-management web application, documented as covering academic, pedagogical, and financial sectors. Its evidenced workflow is staff access to student and teacher registration, with student registration optionally creating accounts; class records connect students and subjects. The README also identifies finance and administration capabilities, but their sampled implementation is limited, so those branches are shown without guessed internal call chains. Edges reflect explicit imports and calls in the supplied source index or excerpts.

Main entry points: [`turmas/models.py`](https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/models.py) (Class records), [`alunos/models.py`](https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/models.py) (Student records), [`alunos/views.py`](https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/views.py) (Student registration), [`professores/views.py`](https://github.com/antonio-neves/gestao-escolar/blob/master/professores/views.py) (Teacher management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Identity and access"]
  node_auth[("User accounts<br/>[models.py]")]
  node_access_rules["Department permissions"]
end

subgraph group_people["People records"]
  node_student_records[("Student records<br/>[models.py]")]
  node_student_forms["Student forms<br/>[forms.py]"]
  node_student_views["Student registration<br/>[views.py]"]
  node_teacher_records[("Teacher records<br/>[models.py]")]
  node_teacher_forms["Teacher forms<br/>[forms.py]"]
  node_teacher_views["Teacher management<br/>[views.py]"]
  node_guardians["Guardian management<br/>[views.py]"]
end

subgraph group_academics["Academic operations"]
  node_class_records[("Class records<br/>[models.py]")]
  node_class_forms["Class forms<br/>[forms.py]"]
  node_class_views["Class management<br/>[views.py]"]
  node_subjects[("Subjects<br/>[models.py]")]
  node_subject_forms["Subject forms<br/>[forms.py]"]
  node_subject_views["Subject management<br/>[views.py]"]
end

subgraph group_platform["Shared application"]
  node_django["Django web app<br/>[urls.py]"]
  node_administration["Administration<br/>[views.py]"]
  node_finance["Financial sector<br/>[views.py]"]
  node_public_site["School website<br/>[views.py]"]
  node_shared_data[("Shared reference data<br/>[models.py]")]
  node_validation["Field validation<br/>[validators.py]"]
end

node_staff(("School staff"))

node_staff -->|"uses"| node_django
node_django -.->|"routes"| node_student_views
node_django -.->|"routes"| node_teacher_views
node_django -.->|"routes"| node_class_views
node_student_views -->|"requires access"| node_access_rules
node_teacher_views -->|"requires access"| node_access_rules
node_class_views -.->|"requires access"| node_access_rules
node_student_views -->|"validates"| node_student_forms
node_student_forms -->|"models"| node_student_records
node_student_views -->|"creates"| node_student_records
node_student_views -->|"creates accounts"| node_auth
node_teacher_views -->|"validates"| node_teacher_forms
node_teacher_forms -->|"models"| node_teacher_records
node_teacher_views -->|"manages"| node_teacher_records
node_teacher_views -->|"creates accounts"| node_auth
node_class_views -->|"uses"| node_class_forms
node_class_forms -->|"models"| node_class_records
node_class_views -->|"manages"| node_class_records
node_class_records -->|"links students"| node_student_records
node_class_records -->|"links subjects"| node_subjects
node_subject_views -->|"uses"| node_subject_forms
node_subject_forms -->|"models"| node_subjects
node_subject_views -->|"manages"| node_subjects
node_subjects -->|"assigned teacher"| node_teacher_records
node_administration -->|"reads"| node_student_records
node_administration -->|"reads"| node_class_records
node_student_records -->|"validates fields"| node_validation
node_teacher_records -->|"validates fields"| node_validation
node_student_records -->|"references"| node_shared_data
node_teacher_records -->|"references"| node_shared_data
node_class_records -->|"references"| node_shared_data

click node_django "https://github.com/antonio-neves/gestao-escolar/blob/master/gestao_escolar/urls.py"
click node_auth "https://github.com/antonio-neves/gestao-escolar/blob/master/accounts/models.py"
click node_access_rules "https://github.com/antonio-neves/gestao-escolar/blob/master/base/base_admin_permissions.py"
click node_student_records "https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/models.py"
click node_student_forms "https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/forms.py"
click node_student_views "https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/views.py"
click node_teacher_records "https://github.com/antonio-neves/gestao-escolar/blob/master/professores/models.py"
click node_teacher_forms "https://github.com/antonio-neves/gestao-escolar/blob/master/professores/forms.py"
click node_teacher_views "https://github.com/antonio-neves/gestao-escolar/blob/master/professores/views.py"
click node_class_records "https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/models.py"
click node_class_forms "https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/forms.py"
click node_class_views "https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/views.py"
click node_subjects "https://github.com/antonio-neves/gestao-escolar/blob/master/principal/models.py"
click node_subject_forms "https://github.com/antonio-neves/gestao-escolar/blob/master/principal/forms.py"
click node_subject_views "https://github.com/antonio-neves/gestao-escolar/blob/master/principal/views.py"
click node_administration "https://github.com/antonio-neves/gestao-escolar/blob/master/administracao/views.py"
click node_finance "https://github.com/antonio-neves/gestao-escolar/blob/master/financeiro/views.py"
click node_guardians "https://github.com/antonio-neves/gestao-escolar/blob/master/responsaveis/views.py"
click node_public_site "https://github.com/antonio-neves/gestao-escolar/blob/master/webpage/views.py"
click node_shared_data "https://github.com/antonio-neves/gestao-escolar/blob/master/base/models.py"
click node_validation "https://github.com/antonio-neves/gestao-escolar/blob/master/base/validators.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth,node_access_rules toneBlue
class node_student_records,node_student_forms,node_student_views,node_teacher_records,node_teacher_forms,node_teacher_views,node_guardians toneAmber
class node_class_records,node_class_forms,node_class_views,node_subjects,node_subject_forms,node_subject_views toneMint
class node_django,node_administration,node_finance,node_public_site,node_shared_data,node_validation toneRose
class node_staff toneIndigo
```

## Components

### Identity and access

- [User accounts](https://github.com/antonio-neves/gestao-escolar/blob/master/accounts/models.py): `accounts/models.py`
- [Department permissions](https://github.com/antonio-neves/gestao-escolar/blob/master/base/base_admin_permissions.py): `base/base_admin_permissions.py`

### People records

- [Student records](https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/models.py): `alunos/models.py`
- [Student forms](https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/forms.py): `alunos/forms.py`
- [Student registration](https://github.com/antonio-neves/gestao-escolar/blob/master/alunos/views.py): `alunos/views.py`
- [Teacher records](https://github.com/antonio-neves/gestao-escolar/blob/master/professores/models.py): `professores/models.py`
- [Teacher forms](https://github.com/antonio-neves/gestao-escolar/blob/master/professores/forms.py): `professores/forms.py`
- [Teacher management](https://github.com/antonio-neves/gestao-escolar/blob/master/professores/views.py): `professores/views.py`
- [Guardian management](https://github.com/antonio-neves/gestao-escolar/blob/master/responsaveis/views.py): `responsaveis/views.py`

### Academic operations

- [Class records](https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/models.py): `turmas/models.py`
- [Class forms](https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/forms.py): `turmas/forms.py`
- [Class management](https://github.com/antonio-neves/gestao-escolar/blob/master/turmas/views.py): `turmas/views.py`
- [Subjects](https://github.com/antonio-neves/gestao-escolar/blob/master/principal/models.py): `principal/models.py`
- [Subject forms](https://github.com/antonio-neves/gestao-escolar/blob/master/principal/forms.py): `principal/forms.py`
- [Subject management](https://github.com/antonio-neves/gestao-escolar/blob/master/principal/views.py): `principal/views.py`

### Shared application

- [Django web app](https://github.com/antonio-neves/gestao-escolar/blob/master/gestao_escolar/urls.py): `gestao_escolar/urls.py`
- [Administration](https://github.com/antonio-neves/gestao-escolar/blob/master/administracao/views.py): `administracao/views.py`
- [Financial sector](https://github.com/antonio-neves/gestao-escolar/blob/master/financeiro/views.py): `financeiro/views.py`
- [School website](https://github.com/antonio-neves/gestao-escolar/blob/master/webpage/views.py): `webpage/views.py`
- [Shared reference data](https://github.com/antonio-neves/gestao-escolar/blob/master/base/models.py): `base/models.py`
- [Field validation](https://github.com/antonio-neves/gestao-escolar/blob/master/base/validators.py): `base/validators.py`

### Other components

- **School staff**

## Connections

- School staff → Django web app: uses
- Django web app → Student registration: routes
- Django web app → Teacher management: routes
- Django web app → Class management: routes
- Student registration → Department permissions: requires access (evidence: `alunos/views.py`)
- Teacher management → Department permissions: requires access (evidence: `professores/views.py`)
- Class management → Department permissions: requires access (evidence: `turmas/views.py`)
- Student registration → Student forms: validates (evidence: `alunos/views.py`)
- Student forms → Student records: models (evidence: `alunos/forms.py`)
- Student registration → Student records: creates (evidence: `alunos/views.py`)
- Student registration → User accounts: creates accounts (evidence: `alunos/views.py`)
- Teacher management → Teacher forms: validates (evidence: `professores/views.py`)
- Teacher forms → Teacher records: models (evidence: `professores/forms.py`)
- Teacher management → Teacher records: manages (evidence: `professores/views.py`)
- Teacher management → User accounts: creates accounts (evidence: `professores/views.py`)
- Class management → Class forms: uses (evidence: `turmas/views.py`)
- Class forms → Class records: models
- Class management → Class records: manages (evidence: `turmas/views.py`)
- Class records → Student records: links students (evidence: `turmas/models.py`)
- Class records → Subjects: links subjects (evidence: `turmas/models.py`)
- Subject management → Subject forms: uses (evidence: `principal/views.py`)
- Subject forms → Subjects: models (evidence: `principal/forms.py`)
- Subject management → Subjects: manages (evidence: `principal/views.py`)
- Subjects → Teacher records: assigned teacher (evidence: `principal/models.py`)
- Administration → Student records: reads (evidence: `administracao/views.py`)
- Administration → Class records: reads (evidence: `administracao/views.py`)
- Student records → Field validation: validates fields (evidence: `alunos/models.py`)
- Teacher records → Field validation: validates fields (evidence: `professores/models.py`)
- Student records → Shared reference data: references (evidence: `alunos/models.py`)
- Teacher records → Shared reference data: references (evidence: `professores/models.py`)
- Class records → Shared reference data: references (evidence: `turmas/models.py`)
