# signoli/cambiar-es-crecer architecture

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

- Interactive diagram: https://gitdiagram.com/signoli/cambiar-es-crecer
- Repository: https://github.com/signoli/cambiar-es-crecer

## Overview

Cambiar es Crecer is a Django blogging application. Visitors browse and filter posts, open a post to comment, and authenticated users can create accounts, publish or edit posts, record views, and toggle likes. The main runtime path is HTTP routing into post or account views, which use forms and Django models backed by SQLite. The source shows routing, view logic, forms, models, and database configuration; template rendering and some framework-provided behavior are implicit, so those links are not expanded.

Main entry points: [`posts/models.py`](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/models.py) (Posts and interactions), [`cambiar/urls.py`](https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/urls.py) (URL routing), [`posts/views.py`](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/views.py) (Signup view), [`posts/forms.py`](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/forms.py) (Post and comment forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_urls["URL routing<br/>[urls.py]"]
  node_admin["Admin registrations<br/>[admin.py]"]
end

subgraph group_posts["Post workflow"]
  node_post_views["Post views<br/>[views.py]"]
  node_post_forms["Post and comment forms<br/>[forms.py]"]
end

subgraph group_identity["Accounts"]
  node_signup_view["Signup view<br/>[views.py]"]
  node_auth["Django authentication<br/>[settings.py]"]
end

subgraph group_data["Persistence"]
  node_post_models["Posts and interactions<br/>[models.py]"]
  node_sqlite[("SQLite database<br/>[settings.py]")]
end

node_visitor(("Visitor"))

node_visitor -->|"sends requests"| node_urls
node_urls -->|"routes posts"| node_post_views
node_urls -->|"routes signup"| node_signup_view
node_post_views -->|"validates input"| node_post_forms
node_post_views -->|"queries and saves"| node_post_models
node_post_forms -->|"models fields"| node_post_models
node_post_models -.->|"persists records"| node_sqlite
node_signup_view -->|"uses signup form"| node_post_forms
node_signup_view -->|"creates user"| node_post_models
node_signup_view -->|"logs in user"| node_auth
node_urls -->|"routes login"| node_auth
node_admin -->|"registers models"| node_post_models

click node_urls "https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/urls.py"
click node_post_views "https://github.com/signoli/cambiar-es-crecer/blob/master/posts/views.py"
click node_post_forms "https://github.com/signoli/cambiar-es-crecer/blob/master/posts/forms.py"
click node_post_models "https://github.com/signoli/cambiar-es-crecer/blob/master/posts/models.py"
click node_sqlite "https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/settings.py"
click node_signup_view "https://github.com/signoli/cambiar-es-crecer/blob/master/posts/views.py"
click node_auth "https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/settings.py"
click node_admin "https://github.com/signoli/cambiar-es-crecer/blob/master/posts/admin.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_urls,node_admin toneBlue
class node_post_views,node_post_forms toneAmber
class node_signup_view,node_auth toneMint
class node_post_models,node_sqlite toneRose
class node_visitor toneIndigo
```

## Components

### Web entry

- [URL routing](https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/urls.py): `cambiar/urls.py`
- [Admin registrations](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/admin.py): `posts/admin.py`

### Post workflow

- [Post views](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/views.py): `posts/views.py`
- [Post and comment forms](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/forms.py): `posts/forms.py`

### Accounts

- [Signup view](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/views.py): `posts/views.py`
- [Django authentication](https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/settings.py): `cambiar/settings.py`

### Persistence

- [Posts and interactions](https://github.com/signoli/cambiar-es-crecer/blob/master/posts/models.py): `posts/models.py`
- [SQLite database](https://github.com/signoli/cambiar-es-crecer/blob/master/cambiar/settings.py): `cambiar/settings.py`

### Other components

- **Visitor**

## Connections

- Visitor → URL routing: sends requests (evidence: `cambiar/urls.py`)
- URL routing → Post views: routes posts (evidence: `cambiar/urls.py`)
- URL routing → Signup view: routes signup (evidence: `cambiar/urls.py`)
- Post views → Post and comment forms: validates input (evidence: `posts/views.py`)
- Post views → Posts and interactions: queries and saves (evidence: `posts/views.py`)
- Post and comment forms → Posts and interactions: models fields (evidence: `posts/forms.py`)
- Posts and interactions → SQLite database: persists records (evidence: `cambiar/settings.py`)
- Signup view → Post and comment forms: uses signup form (evidence: `posts/views.py`)
- Signup view → Posts and interactions: creates user (evidence: `posts/views.py`)
- Signup view → Django authentication: logs in user (evidence: `posts/views.py`)
- URL routing → Django authentication: routes login (evidence: `cambiar/urls.py`)
- Admin registrations → Posts and interactions: registers models (evidence: `posts/admin.py`)
