# olllayor/didattica-new architecture

> Architecture diagram of the GitHub repository olllayor/didattica-new, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/olllayor/didattica-new
- Repository: https://github.com/olllayor/didattica-new

## Overview

##### Main Components Identification
The project appears to be a Django web application with the following key components:

a) Core Application Layer:
- Django Framework (indicated by manage.py and config structure)
- Accounts Module (user management functionality)
- Template System (Django's templating engine)

b) Data Layer:
- SQLite Database (indicated by db.sqlite3)

##### Connection and Flow Representation

- Client Request → URL Router
- URL Router → Views
- Views ↔ Models
- Models ↔ Database
- Views → Templates
- Templates → Client Response

##### Additional Elements

a) System Boundaries:
- Clearly separate the three main layers (Presentation, Application, Data)

- Request flow (→)
- Bidirectional data flow (↔)
- Component type symbols

##### Technical Details to Note

Specific technical aspects:
- WSGI/ASGI Server (from config/wsgi.py and asgi.py)
- Django Admin Interface
- Authentication flow (part of accounts app)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Presentation Layer"
        Templates["Templates"]
        BaseTemplate["base.html"]:::template
        ProfileTemplate["accounts/profile.html"]:::template
        Templates --> BaseTemplate
        Templates --> ProfileTemplate
    end

    subgraph "Application Layer"
        DjangoApp["Django Application"]
        URLRouter["URL Router"]:::router
        WSGIServer["WSGI Server"]:::server
        ASGIServer["ASGI Server"]:::server
        Config["Configuration"]:::config
        
        subgraph "Accounts App"
            AccountsViews["Views"]:::component
            AccountsModels["Models"]:::component
            AccountsAdmin["Admin Interface"]:::component
            
            AccountsViews --> AccountsModels
            AccountsModels --> AccountsAdmin
        end
        
        DjangoApp --> URLRouter
        DjangoApp --> WSGIServer
        DjangoApp --> ASGIServer
        DjangoApp --> Config
        
        URLRouter --> AccountsViews
    end

    subgraph "Data Layer"
        DB[(SQLite Database)]:::database
    end

    %% Connections between layers
    Client[Client Request]:::external
    Response[Client Response]:::external
    
    Client --> WSGIServer & ASGIServer
    WSGIServer & ASGIServer --> URLRouter
    AccountsViews --> Templates
    Templates --> Response
    AccountsModels <--> DB

    %% Click events
    click DjangoApp "https://github.com/olllayor/didattica-new/blob/main/manage.py"
    click Config "https://github.com/olllayor/didattica-new/blob/main/config/settings.py"
    click URLRouter "https://github.com/olllayor/didattica-new/blob/main/config/urls.py"
    click WSGIServer "https://github.com/olllayor/didattica-new/blob/main/config/wsgi.py"
    click ASGIServer "https://github.com/olllayor/didattica-new/blob/main/config/asgi.py"
    click AccountsModels "https://github.com/olllayor/didattica-new/blob/main/accounts/models.py"
    click AccountsViews "https://github.com/olllayor/didattica-new/blob/main/accounts/views.py"
    click AccountsAdmin "https://github.com/olllayor/didattica-new/blob/main/accounts/admin.py"
    click BaseTemplate "https://github.com/olllayor/didattica-new/blob/main/templates/base.html"
    click ProfileTemplate "https://github.com/olllayor/didattica-new/blob/main/templates/accounts/profile.html"
    click DB "https://github.com/olllayor/didattica-new/blob/main/db.sqlite3"

    %% Styling
    classDef external fill:#f9f,stroke:#333,stroke-width:2px
    classDef component fill:#90EE90,stroke:#333,stroke-width:1px
    classDef database fill:#DCDCDC,stroke:#333,stroke-width:1px
    classDef template fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef router fill:#FFB6C1,stroke:#333,stroke-width:1px
    classDef server fill:#DDA0DD,stroke:#333,stroke-width:1px
    classDef config fill:#F0E68C,stroke:#333,stroke-width:1px

    %% Legend
    subgraph Legend
        L1[Client]:::external
        L2[Application Component]:::component
        L3[(Database)]:::database
        L4[Template]:::template
        L5[Router]:::router
        L6[Server]:::server
        L7[Configuration]:::config
    end
```
