# molnatt/hazioldal architecture

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

- Interactive diagram: https://gitdiagram.com/molnatt/hazioldal
- Repository: https://github.com/molnatt/hazioldal

## Overview

This is a Django-based Hungarian homework site with a separate class gradebook. The main workflow is users submitting homework and mentors or teachers reviewing it; the gradebook separately records tests and closures and presents student and class results. The graph includes the documented SQLite/PostgreSQL persistence split and the sampled SVG drawing layer. Some views, templates, and browser wiring were not sampled, so their connections are omitted or marked unverified rather than inferred.

Main entry points: [`APP/models.py`](https://github.com/molnatt/hazioldal/blob/main/APP/models.py) (Homework records), [`app_naplo/views.py`](https://github.com/molnatt/hazioldal/blob/main/app_naplo/views.py) (Gradebook pages), [`app_naplo/models.py`](https://github.com/molnatt/hazioldal/blob/main/app_naplo/models.py) (Gradebook records), [`APP/seged.py`](https://github.com/molnatt/hazioldal/blob/main/APP/seged.py) (Shared helpers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_homework["Homework workflow"]
  node_home_routes["Homework routes<br/>[urls.py]"]
  node_home_views["Homework pages<br/>[views.py]"]
  node_home_api["Homework API<br/>[views_api.py]"]
  node_home_models[("Homework records<br/>[models.py]")]
  node_admin["Admin operations<br/>[admin.py]"]
end

subgraph group_gradebook["Class gradebook"]
  node_grade_views["Gradebook pages<br/>[views.py]"]
  node_grade_api["Gradebook API<br/>[api.py]"]
  node_grade_models[("Gradebook records<br/>[models.py]")]
  node_grade_routes["Gradebook routes<br/>[urls.py]"]
  node_grade_filters["Grade display filters"]
end

subgraph group_shared["Shared services"]
  node_project_routes["Project routing<br/>[urls.py]"]
  node_shared_helpers["Shared helpers<br/>[seged.py]"]
  node_database[("SQLite / PostgreSQL")]
end

subgraph group_frontend["Browser interface"]
  node_home_browser["Homework browser UI<br/>[hf.js]"]
  node_grade_browser["Gradebook browser UI"]
  node_svg_canvas["SVG canvas<br/>[svgvaszon.js]"]
  node_svg_point["SVG points<br/>[svgpont.js]"]
  node_svg_math["SVG math<br/>[svgmatek.js]"]
end

node_users(("Students, mentors"))
node_github{{"Git service"}}

node_project_routes -.->|"routes to"| node_home_routes
node_home_routes -->|"routes to"| node_home_views
node_home_routes -->|"routes to"| node_home_api
node_home_views -->|"queries"| node_home_models
node_home_views -->|"uses"| node_shared_helpers
node_home_api -->|"queries"| node_home_models
node_home_api -->|"uses"| node_shared_helpers
node_admin -->|"manages"| node_home_models
node_admin -->|"uses"| node_shared_helpers
node_users -.->|"uses"| node_home_routes
node_grade_routes -->|"routes to"| node_grade_views
node_grade_routes -->|"routes to"| node_grade_api
node_grade_views -->|"queries"| node_grade_models
node_grade_views -->|"queries"| node_home_models
node_grade_api -->|"queries"| node_grade_models
node_grade_api -->|"uses"| node_home_models
node_grade_api -->|"uses"| node_shared_helpers
node_grade_models -->|"uses"| node_home_models
node_grade_models -->|"uses"| node_grade_views
node_grade_views -.->|"uses"| node_shared_helpers
node_grade_filters -.->|"formats grades"| node_grade_browser
node_home_models -.->|"persists"| node_database
node_grade_models -.->|"persists"| node_database
node_home_models -.->|"Git integration"| node_github
node_svg_canvas -->|"uses"| node_svg_point
node_svg_point -->|"uses"| node_svg_math
node_users -.->|"interacts"| node_home_browser
node_users -.->|"interacts"| node_grade_browser
node_grade_browser -.->|"draws with"| node_svg_canvas

click node_project_routes "https://github.com/molnatt/hazioldal/blob/main/PROJEKT/urls.py"
click node_home_routes "https://github.com/molnatt/hazioldal/blob/main/APP/urls.py"
click node_home_views "https://github.com/molnatt/hazioldal/blob/main/APP/views.py"
click node_home_api "https://github.com/molnatt/hazioldal/blob/main/APP/views_api.py"
click node_home_models "https://github.com/molnatt/hazioldal/blob/main/APP/models.py"
click node_admin "https://github.com/molnatt/hazioldal/blob/main/APP/admin.py"
click node_grade_views "https://github.com/molnatt/hazioldal/blob/main/app_naplo/views.py"
click node_grade_api "https://github.com/molnatt/hazioldal/blob/main/app_naplo/api.py"
click node_grade_models "https://github.com/molnatt/hazioldal/blob/main/app_naplo/models.py"
click node_grade_routes "https://github.com/molnatt/hazioldal/blob/main/app_naplo/urls.py"
click node_shared_helpers "https://github.com/molnatt/hazioldal/blob/main/APP/seged.py"
click node_grade_filters "https://github.com/molnatt/hazioldal/blob/main/app_naplo/templatetags/csoportnaplo_templatefilters.py"
click node_home_browser "https://github.com/molnatt/hazioldal/blob/main/APP/static/js/hf.js"
click node_grade_browser "https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/tanulo_dolgozata.js"
click node_svg_canvas "https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgvaszon.js"
click node_svg_point "https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgpont.js"
click node_svg_math "https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgmatek.js"

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_home_routes,node_home_views,node_home_api,node_home_models,node_admin toneBlue
class node_grade_views,node_grade_api,node_grade_models,node_grade_routes,node_grade_filters toneAmber
class node_project_routes,node_shared_helpers,node_database toneMint
class node_home_browser,node_grade_browser,node_svg_canvas,node_svg_point,node_svg_math toneRose
class node_users,node_github toneIndigo
```

## Components

### Homework workflow

- [Homework routes](https://github.com/molnatt/hazioldal/blob/main/APP/urls.py): `APP/urls.py`
- [Homework pages](https://github.com/molnatt/hazioldal/blob/main/APP/views.py): `APP/views.py`
- [Homework API](https://github.com/molnatt/hazioldal/blob/main/APP/views_api.py): `APP/views_api.py`
- [Homework records](https://github.com/molnatt/hazioldal/blob/main/APP/models.py): `APP/models.py`
- [Admin operations](https://github.com/molnatt/hazioldal/blob/main/APP/admin.py): `APP/admin.py`

### Class gradebook

- [Gradebook pages](https://github.com/molnatt/hazioldal/blob/main/app_naplo/views.py): `app_naplo/views.py`
- [Gradebook API](https://github.com/molnatt/hazioldal/blob/main/app_naplo/api.py): `app_naplo/api.py`
- [Gradebook records](https://github.com/molnatt/hazioldal/blob/main/app_naplo/models.py): `app_naplo/models.py`
- [Gradebook routes](https://github.com/molnatt/hazioldal/blob/main/app_naplo/urls.py): `app_naplo/urls.py`
- [Grade display filters](https://github.com/molnatt/hazioldal/blob/main/app_naplo/templatetags/csoportnaplo_templatefilters.py): `app_naplo/templatetags/csoportnaplo_templatefilters.py`

### Shared services

- [Project routing](https://github.com/molnatt/hazioldal/blob/main/PROJEKT/urls.py): `PROJEKT/urls.py`
- [Shared helpers](https://github.com/molnatt/hazioldal/blob/main/APP/seged.py): `APP/seged.py`
- **SQLite / PostgreSQL**

### Browser interface

- [Homework browser UI](https://github.com/molnatt/hazioldal/blob/main/APP/static/js/hf.js): `APP/static/js/hf.js`
- [Gradebook browser UI](https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/tanulo_dolgozata.js): `app_naplo/static/app_naplo/js/tanulo_dolgozata.js`
- [SVG canvas](https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgvaszon.js): `app_naplo/static/app_naplo/js/svgrajz_framework/svgvaszon.js`
- [SVG points](https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgpont.js): `app_naplo/static/app_naplo/js/svgrajz_framework/svgpont.js`
- [SVG math](https://github.com/molnatt/hazioldal/blob/main/app_naplo/static/app_naplo/js/svgrajz_framework/svgmatek.js): `app_naplo/static/app_naplo/js/svgrajz_framework/svgmatek.js`

### Other components

- **Students, mentors**
- **Git service**

## Connections

- Project routing → Homework routes: routes to
- Homework routes → Homework pages: routes to (evidence: `APP/urls.py`)
- Homework routes → Homework API: routes to (evidence: `APP/urls.py`)
- Homework pages → Homework records: queries (evidence: `APP/views.py`)
- Homework pages → Shared helpers: uses (evidence: `APP/views.py`)
- Homework API → Homework records: queries (evidence: `APP/views_api.py`)
- Homework API → Shared helpers: uses (evidence: `APP/views_api.py`)
- Admin operations → Homework records: manages (evidence: `APP/admin.py`)
- Admin operations → Shared helpers: uses (evidence: `APP/admin.py`)
- Students, mentors → Homework routes: uses
- Gradebook routes → Gradebook pages: routes to (evidence: `app_naplo/urls.py`)
- Gradebook routes → Gradebook API: routes to (evidence: `app_naplo/urls.py`)
- Gradebook pages → Gradebook records: queries (evidence: `app_naplo/views.py`)
- Gradebook pages → Homework records: queries (evidence: `app_naplo/views.py`)
- Gradebook API → Gradebook records: queries (evidence: `app_naplo/api.py`)
- Gradebook API → Homework records: uses (evidence: `app_naplo/api.py`)
- Gradebook API → Shared helpers: uses (evidence: `app_naplo/api.py`)
- Gradebook records → Homework records: uses (evidence: `app_naplo/models.py`)
- Gradebook records → Gradebook pages: uses (evidence: `app_naplo/models.py`)
- Gradebook pages → Shared helpers: uses (evidence: `app_naplo/views.py`)
- Grade display filters → Gradebook browser UI: formats grades
- Homework records → SQLite / PostgreSQL: persists
- Gradebook records → SQLite / PostgreSQL: persists
- Homework records → Git service: Git integration
- SVG canvas → SVG points: uses (evidence: `app_naplo/static/app_naplo/js/svgrajz_framework/svgvaszon.js`)
- SVG points → SVG math: uses (evidence: `app_naplo/static/app_naplo/js/svgrajz_framework/svgpont.js`)
- Students, mentors → Homework browser UI: interacts
- Students, mentors → Gradebook browser UI: interacts
- Gradebook browser UI → SVG canvas: draws with
