# abedmallahsc-ui/plat-highsch architecture

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

- Interactive diagram: https://gitdiagram.com/abedmallahsc-ui/plat-highsch
- Repository: https://github.com/abedmallahsc-ui/plat-highsch

## Overview

This is a Django school portal for students and teachers. Users authenticate and reach role-specific dashboards; teachers publish class assessments, students submit work, teachers review it, and teachers upload final grades. Dashboards also expose class programs and announcements. The views centralize these workflows and operate on the school domain models. The excerpts show route wiring, model usage, and configured database and media storage; template internals and some view behavior were not sampled, so those relationships are limited to what the excerpts establish.

Main entry points: [`school/urls.py`](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/urls.py) (School routes), [`school/models.py`](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/models.py) (School domain data), [`school/views.py`](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py) (Role dashboards), [`schoolplatform/settings.py`](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/schoolplatform/settings.py) (Django configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_routes["School routes<br/>[urls.py]"]
  node_auth["Login and roles<br/>[views.py]"]
  node_dashboards["Role dashboards<br/>[views.py]"]
  node_templates["Portal pages"]
end

subgraph group_learning["Learning workflows"]
  node_assessment_authoring["Assessment authoring<br/>[views.py]"]
  node_submissions["Student submissions<br/>[views.py]"]
  node_review["Submission review<br/>[views.py]"]
end

subgraph group_records["School records"]
  node_grades["Final grades<br/>[views.py]"]
  node_programs["Class programs<br/>[models.py]"]
  node_school_data["School domain data<br/>[models.py]"]
end

subgraph group_platform["Platform services"]
  node_database[("SQL database")]
  node_media_storage[("Media storage")]
  node_settings["Django configuration<br/>[settings.py]"]
end

node_users(("Students and teachers"))

node_users -->|"request pages"| node_routes
node_routes -->|"routes login"| node_auth
node_routes -->|"routes dashboard"| node_dashboards
node_routes -->|"routes creation"| node_assessment_authoring
node_routes -->|"routes submission"| node_submissions
node_routes -->|"routes review"| node_review
node_routes -->|"routes upload"| node_grades
node_auth -->|"renders login"| node_templates
node_dashboards -->|"queries records"| node_school_data
node_dashboards -->|"renders dashboard"| node_templates
node_assessment_authoring -->|"creates assessments"| node_school_data
node_submissions -->|"saves submissions"| node_school_data
node_review -->|"updates submissions"| node_school_data
node_grades -->|"upserts grades"| node_school_data
node_programs -.->|"modeled alongside"| node_school_data
node_settings -->|"configures database"| node_database
node_settings -->|"configures media"| node_media_storage
node_school_data -.->|"stores records"| node_database
node_assessment_authoring -.->|"uploads attachments"| node_media_storage
node_submissions -.->|"uploads work"| node_media_storage

click node_routes "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/urls.py"
click node_auth "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_dashboards "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_templates "https://github.com/abedmallahsc-ui/plat-highsch/tree/main/school/templates/school"
click node_assessment_authoring "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_submissions "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_review "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_grades "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py"
click node_programs "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/models.py"
click node_school_data "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/models.py"
click node_settings "https://github.com/abedmallahsc-ui/plat-highsch/blob/main/schoolplatform/settings.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_routes,node_auth,node_dashboards,node_templates toneBlue
class node_assessment_authoring,node_submissions,node_review toneAmber
class node_grades,node_programs,node_school_data toneMint
class node_database,node_media_storage,node_settings toneRose
class node_users toneIndigo
```

## Components

### Web interface

- [School routes](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/urls.py): `school/urls.py`
- [Login and roles](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`
- [Role dashboards](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`
- [Portal pages](https://github.com/abedmallahsc-ui/plat-highsch/tree/main/school/templates/school): `school/templates/school`

### Learning workflows

- [Assessment authoring](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`
- [Student submissions](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`
- [Submission review](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`

### School records

- [Final grades](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/views.py): `school/views.py`
- [Class programs](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/models.py): `school/models.py`
- [School domain data](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/school/models.py): `school/models.py`

### Platform services

- **SQL database**
- **Media storage**
- [Django configuration](https://github.com/abedmallahsc-ui/plat-highsch/blob/main/schoolplatform/settings.py): `schoolplatform/settings.py`

### Other components

- **Students and teachers**

## Connections

- Students and teachers → School routes: request pages (evidence: `school/urls.py`)
- School routes → Login and roles: routes login (evidence: `school/urls.py`)
- School routes → Role dashboards: routes dashboard (evidence: `school/urls.py`)
- School routes → Assessment authoring: routes creation (evidence: `school/urls.py`)
- School routes → Student submissions: routes submission (evidence: `school/urls.py`)
- School routes → Submission review: routes review (evidence: `school/urls.py`)
- School routes → Final grades: routes upload (evidence: `school/urls.py`)
- Login and roles → Portal pages: renders login (evidence: `school/views.py`)
- Role dashboards → School domain data: queries records (evidence: `school/views.py`)
- Role dashboards → Portal pages: renders dashboard (evidence: `school/views.py`)
- Assessment authoring → School domain data: creates assessments (evidence: `school/views.py`)
- Student submissions → School domain data: saves submissions (evidence: `school/views.py`)
- Submission review → School domain data: updates submissions (evidence: `school/views.py`)
- Final grades → School domain data: upserts grades (evidence: `school/views.py`)
- Class programs → School domain data: modeled alongside (evidence: `school/models.py`)
- Django configuration → SQL database: configures database (evidence: `schoolplatform/settings.py`)
- Django configuration → Media storage: configures media (evidence: `schoolplatform/settings.py`)
- School domain data → SQL database: stores records
- Assessment authoring → Media storage: uploads attachments
- Student submissions → Media storage: uploads work
