# lazarus2006/nesto architecture

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

- Interactive diagram: https://gitdiagram.com/lazarus2006/nesto
- Repository: https://github.com/lazarus2006/nesto

## Overview

Nesto is a city-specific community and guide for people settling into a new city. Users choose a city, contribute community posts or structured guide entries tied to categories and entities, then browse and discuss city knowledge. The sampled views and models support city selection, search, profiles, posts, entities, and comments; the README also describes moderation as the quality gate for guide growth. The graph keeps documented moderation distinct from the sampled request flow; other unsampled feature details are not inferred.

Main entry points: [`Django/Nesto/pages/views.py`](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/views.py) (City and content views), [`Django/Nesto/core/views.py`](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/views.py) (Account actions), [`Django/Nesto/pages/urls.py`](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/urls.py) (Page routes), [`Django/Nesto/core/urls.py`](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/urls.py) (Account routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_page_routes["Page routes<br/>[urls.py]"]
  node_account_routes["Account routes<br/>[urls.py]"]
end

subgraph group_accounts["Accounts"]
  node_account_views["Account actions<br/>[views.py]"]
  node_signup_form["Sign-up form<br/>[forms.py]"]
end

subgraph group_community["Community and guide"]
  node_page_views["City and content views<br/>[views.py]"]
  node_post_form["Post and comment forms<br/>[forms.py]"]
  node_moderation["Guide moderation<br/>[admin.py]"]
end

subgraph group_knowledge["City knowledge"]
  node_city_profile["City and profile<br/>[models.py]"]
  node_city_content[("Posts and comments<br/>[models.py]")]
  node_guide_catalog[("Categories and entities<br/>[models.py]")]
end

subgraph group_presentation["User interface"]
  node_community_pages["Community views<br/>[home.html]"]
  node_guide_pages["Guide views<br/>[entity_detail.html]"]
  node_post_detail["Post detail<br/>[post_detail.html]"]
  node_account_pages["Account pages<br/>[signup.html]"]
  node_map_client["Map interactions<br/>[map.js]"]
end

node_visitor(("Community member"))

node_visitor -->|"requests pages"| node_page_routes
node_visitor -->|"requests account"| node_account_routes
node_page_routes -->|"routes to"| node_page_views
node_account_routes -->|"routes to"| node_account_views
node_account_views -->|"validates with"| node_signup_form
node_account_views -->|"creates and updates"| node_city_profile
node_page_views -->|"reads and updates"| node_city_profile
node_page_views -->|"queries and creates"| node_city_content
node_page_views -->|"queries and creates"| node_guide_catalog
node_page_views -->|"uses comment form"| node_post_form
node_page_views -->|"renders home"| node_community_pages
node_page_views -->|"renders entity detail"| node_guide_pages
node_page_views -->|"renders post detail"| node_post_detail
node_account_views -->|"renders sign-up"| node_account_pages
node_visitor -->|"submits guide proposals"| node_moderation
node_moderation -.->|"approves guide entries"| node_guide_catalog
node_visitor -.->|"uses map interface"| node_map_client

click node_page_routes "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/urls.py"
click node_account_routes "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/urls.py"
click node_account_views "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/views.py"
click node_signup_form "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/forms.py"
click node_city_profile "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py"
click node_page_views "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/views.py"
click node_post_form "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/forms.py"
click node_city_content "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py"
click node_guide_catalog "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py"
click node_moderation "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/admin.py"
click node_community_pages "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/home.html"
click node_guide_pages "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/entity_detail.html"
click node_post_detail "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/post_detail.html"
click node_account_pages "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/templates/core/signup.html"
click node_map_client "https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/static/pages/map.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_page_routes,node_account_routes toneBlue
class node_account_views,node_signup_form toneAmber
class node_page_views,node_post_form,node_moderation toneMint
class node_city_profile,node_city_content,node_guide_catalog toneRose
class node_community_pages,node_guide_pages,node_post_detail,node_account_pages,node_map_client,node_visitor toneIndigo
```

## Components

### Web entry

- [Page routes](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/urls.py): `Django/Nesto/pages/urls.py`
- [Account routes](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/urls.py): `Django/Nesto/core/urls.py`

### Accounts

- [Account actions](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/views.py): `Django/Nesto/core/views.py`
- [Sign-up form](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/forms.py): `Django/Nesto/core/forms.py`

### Community and guide

- [City and content views](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/views.py): `Django/Nesto/pages/views.py`
- [Post and comment forms](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/forms.py): `Django/Nesto/pages/forms.py`
- [Guide moderation](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/admin.py): `Django/Nesto/pages/admin.py`

### City knowledge

- [City and profile](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py): `Django/Nesto/pages/models.py`
- [Posts and comments](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py): `Django/Nesto/pages/models.py`
- [Categories and entities](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/models.py): `Django/Nesto/pages/models.py`

### User interface

- [Community views](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/home.html): `Django/Nesto/pages/templates/pages/home.html`
- [Guide views](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/entity_detail.html): `Django/Nesto/pages/templates/pages/entity_detail.html`
- [Post detail](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/templates/pages/post_detail.html): `Django/Nesto/pages/templates/pages/post_detail.html`
- [Account pages](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/core/templates/core/signup.html): `Django/Nesto/core/templates/core/signup.html`
- [Map interactions](https://github.com/lazarus2006/nesto/blob/main/Django/Nesto/pages/static/pages/map.js): `Django/Nesto/pages/static/pages/map.js`

### Other components

- **Community member**

## Connections

- Community member → Page routes: requests pages (evidence: `README.md`)
- Community member → Account routes: requests account (evidence: `README.md`)
- Page routes → City and content views: routes to (evidence: `Django/Nesto/pages/urls.py`)
- Account routes → Account actions: routes to (evidence: `Django/Nesto/core/urls.py`)
- Account actions → Sign-up form: validates with (evidence: `Django/Nesto/core/views.py`)
- Account actions → City and profile: creates and updates (evidence: `Django/Nesto/core/views.py`)
- City and content views → City and profile: reads and updates (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Posts and comments: queries and creates (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Categories and entities: queries and creates (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Post and comment forms: uses comment form (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Community views: renders home (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Guide views: renders entity detail (evidence: `Django/Nesto/pages/views.py`)
- City and content views → Post detail: renders post detail (evidence: `Django/Nesto/pages/views.py`)
- Account actions → Account pages: renders sign-up (evidence: `Django/Nesto/core/views.py`)
- Community member → Guide moderation: submits guide proposals (evidence: `README.md`)
- Guide moderation → Categories and entities: approves guide entries (evidence: `Django/Nesto/pages/admin.py`)
- Community member → Map interactions: uses map interface
