# arleking1521/blog-march architecture

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

- Interactive diagram: https://gitdiagram.com/arleking1521/blog-march
- Repository: https://github.com/arleking1521/blog-march

## Overview

This is a Django application for user accounts and bilingual posts with image attachments. The main workflow is account registration, email activation and login, followed by listing, creating, editing, viewing or deleting posts. Post forms and ORM models provide the internal domain layer, while templates render the responses. The excerpts show routing, view-to-form/model calls, activation-token use and email dispatch; database configuration and several presentation details were not sampled, so those links are limited.

Main entry points: [`account/views.py`](https://github.com/arleking1521/blog-march/blob/main/account/views.py) (Account actions), [`core/urls.py`](https://github.com/arleking1521/blog-march/blob/main/core/urls.py) (Project routes), [`post/views.py`](https://github.com/arleking1521/blog-march/blob/main/post/views.py) (Post actions), [`post/models.py`](https://github.com/arleking1521/blog-march/blob/main/post/models.py) (Posts and attachments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Request routing"]
  node_router["Project routes<br/>[urls.py]"]
  node_account_routes["Account routes<br/>[urls.py]"]
  node_post_routes["Post routes<br/>[urls.py]"]
end

subgraph group_accounts["Accounts"]
  node_account_views["Account actions<br/>[views.py]"]
  node_account_forms["Account forms<br/>[form.py]"]
  node_user_model["User model<br/>[models.py]"]
  node_activation_token["Activation token<br/>[token.py]"]
  node_email_service["Email service"]
end

subgraph group_publishing["Post publishing"]
  node_post_views["Post actions<br/>[views.py]"]
  node_post_forms["Post forms<br/>[form.py]"]
  node_post_models["Posts and attachments<br/>[models.py]"]
end

subgraph group_presentation["Presentation"]
  node_templates["Page templates"]
end

node_visitor(("Visitor"))
node_database[("Django database")]

node_visitor -->|"sends requests"| node_router
node_router -->|"includes routes"| node_post_routes
node_router -->|"includes routes"| node_account_routes
node_router -->|"routes activation"| node_account_views
node_post_routes -->|"dispatches requests"| node_post_views
node_account_routes -->|"dispatches requests"| node_account_views
node_account_views -->|"validates input"| node_account_forms
node_account_views -->|"reads and saves"| node_user_model
node_account_views -->|"creates and checks"| node_activation_token
node_account_views -->|"sends activation email"| node_email_service
node_account_views -->|"renders pages"| node_templates
node_post_views -->|"validates input"| node_post_forms
node_post_views -->|"queries and saves"| node_post_models
node_post_views -->|"renders pages"| node_templates
node_post_forms -->|"defines model form"| node_post_models
node_post_models -->|"references author"| node_user_model
node_user_model -.->|"persists user records"| node_database
node_post_models -.->|"persists post records"| node_database

click node_router "https://github.com/arleking1521/blog-march/blob/main/core/urls.py"
click node_account_routes "https://github.com/arleking1521/blog-march/blob/main/account/urls.py"
click node_post_routes "https://github.com/arleking1521/blog-march/blob/main/post/urls.py"
click node_account_views "https://github.com/arleking1521/blog-march/blob/main/account/views.py"
click node_account_forms "https://github.com/arleking1521/blog-march/blob/main/account/form.py"
click node_user_model "https://github.com/arleking1521/blog-march/blob/main/account/models.py"
click node_activation_token "https://github.com/arleking1521/blog-march/blob/main/account/token.py"
click node_post_views "https://github.com/arleking1521/blog-march/blob/main/post/views.py"
click node_post_forms "https://github.com/arleking1521/blog-march/blob/main/post/form.py"
click node_post_models "https://github.com/arleking1521/blog-march/blob/main/post/models.py"
click node_templates "https://github.com/arleking1521/blog-march/tree/main/templates"

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_router,node_account_routes,node_post_routes toneBlue
class node_account_views,node_account_forms,node_user_model,node_activation_token,node_email_service,node_database toneAmber
class node_post_views,node_post_forms,node_post_models toneMint
class node_templates toneRose
class node_visitor toneIndigo
```

## Components

### Request routing

- [Project routes](https://github.com/arleking1521/blog-march/blob/main/core/urls.py): `core/urls.py`
- [Account routes](https://github.com/arleking1521/blog-march/blob/main/account/urls.py): `account/urls.py`
- [Post routes](https://github.com/arleking1521/blog-march/blob/main/post/urls.py): `post/urls.py`

### Accounts

- [Account actions](https://github.com/arleking1521/blog-march/blob/main/account/views.py): `account/views.py`
- [Account forms](https://github.com/arleking1521/blog-march/blob/main/account/form.py): `account/form.py`
- [User model](https://github.com/arleking1521/blog-march/blob/main/account/models.py): `account/models.py`
- [Activation token](https://github.com/arleking1521/blog-march/blob/main/account/token.py): `account/token.py`
- **Email service**

### Post publishing

- [Post actions](https://github.com/arleking1521/blog-march/blob/main/post/views.py): `post/views.py`
- [Post forms](https://github.com/arleking1521/blog-march/blob/main/post/form.py): `post/form.py`
- [Posts and attachments](https://github.com/arleking1521/blog-march/blob/main/post/models.py): `post/models.py`

### Presentation

- [Page templates](https://github.com/arleking1521/blog-march/tree/main/templates): `templates`

### Other components

- **Visitor**
- **Django database**

## Connections

- Visitor → Project routes: sends requests (evidence: `core/urls.py`)
- Project routes → Post routes: includes routes (evidence: `core/urls.py`)
- Project routes → Account routes: includes routes (evidence: `core/urls.py`)
- Project routes → Account actions: routes activation (evidence: `core/urls.py`)
- Post routes → Post actions: dispatches requests (evidence: `post/urls.py`)
- Account routes → Account actions: dispatches requests (evidence: `account/urls.py`)
- Account actions → Account forms: validates input (evidence: `account/views.py`)
- Account actions → User model: reads and saves (evidence: `account/views.py`)
- Account actions → Activation token: creates and checks (evidence: `account/views.py`)
- Account actions → Email service: sends activation email (evidence: `account/views.py`)
- Account actions → Page templates: renders pages (evidence: `account/views.py`)
- Post actions → Post forms: validates input (evidence: `post/views.py`)
- Post actions → Posts and attachments: queries and saves (evidence: `post/views.py`)
- Post actions → Page templates: renders pages (evidence: `post/views.py`)
- Post forms → Posts and attachments: defines model form (evidence: `post/form.py`)
- Posts and attachments → User model: references author (evidence: `post/models.py`)
- User model → Django database: persists user records (evidence: `account/models.py`)
- Posts and attachments → Django database: persists post records (evidence: `post/models.py`)
