# velonirina04/sondage architecture

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

- Interactive diagram: https://gitdiagram.com/velonirina04/sondage
- Repository: https://github.com/velonirina04/sondage

## Overview

This is a Django survey application. Investigators create and manage surveys; users browse surveys, submit votes, and view results. Registration assigns user roles, while login and investigator-only permissions govern access. The route and view excerpts establish request dispatch, and the view excerpt plus SOURCE INDEX establish its use of forms and models. Template rendering is visible in the views, but the template files themselves were not sampled; storage configuration and database interactions beyond the ORM are not mapped.

Main entry points: [`survey_project/survey/views.py`](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/views.py) (Survey handlers), [`survey_project/survey/urls.py`](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/urls.py) (Survey routes), [`survey_project/survey/forms.py`](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/forms.py) (Survey forms), [`survey_project/survey/models.py`](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/models.py) (Survey data models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request routing"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_survey_routes["Survey routes<br/>[urls.py]"]
end

subgraph group_surveys["Survey workflows"]
  node_survey_views["Survey handlers<br/>[views.py]"]
  node_survey_forms["Survey forms<br/>[forms.py]"]
  node_survey_models["Survey data models<br/>[models.py]"]
  node_survey_pages["Survey templates"]
end

subgraph group_identity["Accounts and roles"]
  node_account_forms["Account forms<br/>[forms.py]"]
  node_account_views["Account handlers<br/>[views.py]"]
  node_django_auth["Django accounts"]
end

node_visitor(("Visitor"))

node_project_routes -->|"includes routes"| node_survey_routes
node_survey_routes -->|"dispatches requests"| node_survey_views
node_survey_views -->|"uses forms"| node_survey_forms
node_survey_views -->|"queries and saves"| node_survey_models
node_survey_views -->|"renders pages"| node_survey_pages
node_survey_views -->|"uses forms"| node_account_forms
node_survey_views -->|"authenticates users"| node_django_auth
node_account_views -->|"validates input"| node_account_forms
node_account_views -->|"manages accounts"| node_django_auth
node_survey_forms -->|"defines model form"| node_survey_models

click node_project_routes "https://github.com/velonirina04/sondage/blob/master/survey_project/survey_project/urls.py"
click node_survey_routes "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/urls.py"
click node_survey_views "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/views.py"
click node_survey_forms "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/forms.py"
click node_survey_models "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/models.py"
click node_survey_pages "https://github.com/velonirina04/sondage/tree/master/survey_project/survey/templates/survey"
click node_account_forms "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/forms.py"
click node_account_views "https://github.com/velonirina04/sondage/blob/master/survey_project/survey/views.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_project_routes,node_survey_routes toneBlue
class node_survey_views,node_survey_forms,node_survey_models,node_survey_pages toneAmber
class node_account_forms,node_account_views,node_django_auth toneMint
class node_visitor toneIndigo
```

## Components

### Request routing

- [Project routes](https://github.com/velonirina04/sondage/blob/master/survey_project/survey_project/urls.py): `survey_project/survey_project/urls.py`
- [Survey routes](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/urls.py): `survey_project/survey/urls.py`

### Survey workflows

- [Survey handlers](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/views.py): `survey_project/survey/views.py`
- [Survey forms](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/forms.py): `survey_project/survey/forms.py`
- [Survey data models](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/models.py): `survey_project/survey/models.py`
- [Survey templates](https://github.com/velonirina04/sondage/tree/master/survey_project/survey/templates/survey): `survey_project/survey/templates/survey`

### Accounts and roles

- [Account forms](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/forms.py): `survey_project/survey/forms.py`
- [Account handlers](https://github.com/velonirina04/sondage/blob/master/survey_project/survey/views.py): `survey_project/survey/views.py`
- **Django accounts**

### Other components

- **Visitor**

## Connections

- Project routes → Survey routes: includes routes (evidence: `survey_project/survey_project/urls.py`)
- Survey routes → Survey handlers: dispatches requests (evidence: `survey_project/survey/urls.py`)
- Survey handlers → Survey forms: uses forms (evidence: `survey_project/survey/views.py`)
- Survey handlers → Survey data models: queries and saves (evidence: `survey_project/survey/views.py`)
- Survey handlers → Survey templates: renders pages (evidence: `survey_project/survey/views.py`)
- Survey handlers → Account forms: uses forms (evidence: `survey_project/survey/views.py`)
- Survey handlers → Django accounts: authenticates users (evidence: `survey_project/survey/views.py`)
- Account handlers → Account forms: validates input (evidence: `survey_project/survey/views.py`)
- Account handlers → Django accounts: manages accounts (evidence: `survey_project/survey/views.py`)
- Survey forms → Survey data models: defines model form (evidence: `survey_project/survey/forms.py`)
