# r2d2x0x/sistema-de-evaluacion-de-codigo architecture

> Architecture diagram of the GitHub repository r2d2x0x/sistema-de-evaluacion-de-codigo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/r2d2x0x/sistema-de-evaluacion-de-codigo
- Repository: https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo

## Overview

This is a small Django web application for a code-evaluation system. The documented goal is for a student to submit an exercise script and receive an automatic correct/incorrect result, but the sampled views only render login and exercise-creation pages; they do not implement submission or evaluation. The graph distinguishes the documented workflow from the observed routes and configuration. Source evidence is limited to the supplied excerpts, so no wiring to models or a database is inferred.

Main entry points: [`sistema/sistema/settings.py`](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/settings.py) (Django settings), [`sistema/evaluador/views.py`](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/views.py) (Page views), [`sistema/sistema/urls.py`](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/urls.py) (URL routes), [`sistema/evaluador`](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador) (Exercise script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_views["Page views<br/>[views.py]"]
  node_login["Login page<br/>[autenticacion.html]"]
  node_exercise_page["Exercise setup"]
end

subgraph group_evaluation["Evaluation workflow"]
  node_script["Exercise script"]
  node_automatic_check["Automatic check"]
  node_verdict["Correctness result"]
end

subgraph group_runtime["Django runtime"]
  node_routes["URL routes<br/>[urls.py]"]
  node_settings["Django settings<br/>[settings.py]"]
  node_db_config["Database config<br/>[db.py]"]
  node_models["Application models<br/>[models.py]"]
  node_database[("Configured database<br/>[db.sqlite3]")]
end

node_student(("Student"))
node_teacher(("Exercise author"))

node_student -->|"requests pages"| node_routes
node_teacher -->|"requests pages"| node_routes
node_routes -->|"dispatches"| node_views
node_views -->|"renders"| node_login
node_views -->|"renders"| node_exercise_page
node_student -->|"submits &#40;documented&#41;"| node_script
node_script -->|"evaluated &#40;documented&#41;"| node_automatic_check
node_automatic_check -->|"produces &#40;documented&#41;"| node_verdict
node_settings -->|"loads"| node_db_config
node_settings -->|"enables app"| node_models
node_settings -->|"configures database"| node_database

click node_routes "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/urls.py"
click node_views "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/views.py"
click node_login "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/templates/autenticacion.html"
click node_exercise_page "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/templates/crear_ejercicios.html"
click node_script "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador"
click node_automatic_check "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador"
click node_verdict "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador"
click node_settings "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/settings.py"
click node_db_config "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/db.py"
click node_models "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/models.py"
click node_database "https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/db.sqlite3"

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_views,node_login,node_exercise_page toneBlue
class node_script,node_automatic_check,node_verdict toneAmber
class node_routes,node_settings,node_db_config,node_models,node_database toneMint
class node_student,node_teacher toneIndigo
```

## Components

### Web interface

- [Page views](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/views.py): `sistema/evaluador/views.py`
- [Login page](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/templates/autenticacion.html): `sistema/evaluador/templates/autenticacion.html`
- [Exercise setup](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/templates/crear_ejercicios.html): `sistema/evaluador/templates/crear_ejercicios.html`

### Evaluation workflow

- [Exercise script](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador): `sistema/evaluador`
- [Automatic check](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador): `sistema/evaluador`
- [Correctness result](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/tree/main/sistema/evaluador): `sistema/evaluador`

### Django runtime

- [URL routes](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/urls.py): `sistema/sistema/urls.py`
- [Django settings](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/settings.py): `sistema/sistema/settings.py`
- [Database config](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/sistema/db.py): `sistema/sistema/db.py`
- [Application models](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/evaluador/models.py): `sistema/evaluador/models.py`
- [Configured database](https://github.com/r2d2x0x/sistema-de-evaluacion-de-codigo/blob/main/sistema/db.sqlite3): `sistema/db.sqlite3`

### Other components

- **Student**
- **Exercise author**

## Connections

- Student → URL routes: requests pages
- Exercise author → URL routes: requests pages
- URL routes → Page views: dispatches
- Page views → Login page: renders
- Page views → Exercise setup: renders
- Student → Exercise script: submits (documented)
- Exercise script → Automatic check: evaluated (documented)
- Automatic check → Correctness result: produces (documented)
- Django settings → Database config: loads
- Django settings → Application models: enables app
- Django settings → Configured database: configures database
