# preetichaudhary-it/bloghub architecture

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

- Interactive diagram: https://gitdiagram.com/preetichaudhary-it/bloghub
- Repository: https://github.com/preetichaudhary-it/bloghub

## Overview

BlogHub is a Django multi-user blogging platform. Visitors register or log in, browse and search/filter posts by category, while authenticated users create and manage posts and profiles; contact and feedback provide separate submission flows. The graph captures the documented search and admin capabilities, though their implementation details were not sampled. Edges are limited to URL routing, calls, and model/form usage shown in excerpts or README; unsampled template and search wiring is not inferred.

Main entry points: [`blog/views.py`](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py) (Request views), [`blog/models.py`](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/models.py) (Domain models), [`blog/forms.py`](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/forms.py) (Input forms), [`bloghub/urls.py`](https://github.com/preetichaudhary-it/bloghub/blob/main/bloghub/urls.py) (Root routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry"]
  node_django_routes["Root routes<br/>[urls.py]"]
  node_app_routes["App routes<br/>[urls.py]"]
  node_views["Request views<br/>[views.py]"]
  node_forms["Input forms<br/>[forms.py]"]
end

subgraph group_accounts["Accounts"]
  node_registration["Registration<br/>[views.py]"]
  node_authentication["Login and logout<br/>[views.py]"]
  node_profile["Profile management<br/>[views.py]"]
end

subgraph group_publishing["Blog publishing"]
  node_create["Create posts<br/>[views.py]"]
  node_browse["Browse and search<br/>[views.py]"]
  node_post_detail["Post detail<br/>[views.py]"]
  node_edit_delete["Edit and delete<br/>[views.py]"]
end

subgraph group_engagement["User engagement"]
  node_contact_feedback["Contact and feedback<br/>[views.py]"]
  node_admin["Admin management<br/>[admin.py]"]
end

subgraph group_data["Domain data"]
  node_domain_models[("Domain models<br/>[models.py]")]
  node_sqlite[("SQLite database<br/>[settings.py]")]
end

node_visitor(("Visitor"))

node_visitor -->|"sends requests"| node_django_routes
node_django_routes -->|"includes routes"| node_app_routes
node_app_routes -->|"routes to"| node_views
node_views -->|"dispatches"| node_registration
node_views -->|"dispatches"| node_authentication
node_views -->|"dispatches"| node_profile
node_views -->|"dispatches"| node_create
node_views -->|"dispatches"| node_browse
node_views -->|"dispatches"| node_post_detail
node_views -->|"dispatches"| node_edit_delete
node_views -->|"dispatches"| node_contact_feedback
node_registration -->|"validates with"| node_forms
node_profile -->|"validates with"| node_forms
node_create -->|"validates with"| node_forms
node_edit_delete -->|"validates with"| node_forms
node_contact_feedback -->|"validates with"| node_forms
node_registration -->|"saves user"| node_domain_models
node_forms -->|"models forms on"| node_domain_models
node_create -->|"creates posts"| node_domain_models
node_browse -->|"queries posts"| node_domain_models
node_post_detail -->|"fetches post"| node_domain_models
node_edit_delete -->|"updates or deletes"| node_domain_models
node_profile -->|"queries user posts"| node_domain_models
node_contact_feedback -->|"stores submissions"| node_domain_models
node_admin -->|"manages records"| node_domain_models
node_domain_models -.->|"persists records"| node_sqlite

click node_django_routes "https://github.com/preetichaudhary-it/bloghub/blob/main/bloghub/urls.py"
click node_app_routes "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/urls.py"
click node_views "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_forms "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/forms.py"
click node_registration "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_authentication "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_profile "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_create "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_browse "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_post_detail "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_edit_delete "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_contact_feedback "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py"
click node_admin "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/admin.py"
click node_domain_models "https://github.com/preetichaudhary-it/bloghub/blob/main/blog/models.py"
click node_sqlite "https://github.com/preetichaudhary-it/bloghub/blob/main/bloghub/settings.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_django_routes,node_app_routes,node_views,node_forms toneBlue
class node_registration,node_authentication,node_profile toneAmber
class node_create,node_browse,node_post_detail,node_edit_delete toneMint
class node_contact_feedback,node_admin toneRose
class node_domain_models,node_sqlite,node_visitor toneIndigo
```

## Components

### Web entry

- [Root routes](https://github.com/preetichaudhary-it/bloghub/blob/main/bloghub/urls.py): `bloghub/urls.py`
- [App routes](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/urls.py): `blog/urls.py`
- [Request views](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Input forms](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/forms.py): `blog/forms.py`

### Accounts

- [Registration](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Login and logout](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Profile management](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`

### Blog publishing

- [Create posts](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Browse and search](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Post detail](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Edit and delete](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`

### User engagement

- [Contact and feedback](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/views.py): `blog/views.py`
- [Admin management](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/admin.py): `blog/admin.py`

### Domain data

- [Domain models](https://github.com/preetichaudhary-it/bloghub/blob/main/blog/models.py): `blog/models.py`
- [SQLite database](https://github.com/preetichaudhary-it/bloghub/blob/main/bloghub/settings.py): `bloghub/settings.py`

### Other components

- **Visitor**

## Connections

- Visitor → Root routes: sends requests (evidence: `bloghub/urls.py`)
- Root routes → App routes: includes routes (evidence: `bloghub/urls.py`)
- App routes → Request views: routes to (evidence: `blog/urls.py`)
- Request views → Registration: dispatches (evidence: `blog/urls.py`)
- Request views → Login and logout: dispatches (evidence: `blog/urls.py`)
- Request views → Profile management: dispatches (evidence: `blog/urls.py`)
- Request views → Create posts: dispatches (evidence: `blog/urls.py`)
- Request views → Browse and search: dispatches (evidence: `blog/urls.py`)
- Request views → Post detail: dispatches (evidence: `blog/urls.py`)
- Request views → Edit and delete: dispatches (evidence: `blog/urls.py`)
- Request views → Contact and feedback: dispatches (evidence: `blog/urls.py`)
- Registration → Input forms: validates with (evidence: `blog/views.py`)
- Profile management → Input forms: validates with (evidence: `blog/views.py`)
- Create posts → Input forms: validates with (evidence: `blog/views.py`)
- Edit and delete → Input forms: validates with (evidence: `blog/views.py`)
- Contact and feedback → Input forms: validates with (evidence: `blog/views.py`)
- Registration → Domain models: saves user (evidence: `blog/views.py`)
- Input forms → Domain models: models forms on (evidence: `blog/forms.py`)
- Create posts → Domain models: creates posts (evidence: `blog/views.py`)
- Browse and search → Domain models: queries posts (evidence: `blog/views.py`)
- Post detail → Domain models: fetches post (evidence: `blog/views.py`)
- Edit and delete → Domain models: updates or deletes (evidence: `blog/views.py`)
- Profile management → Domain models: queries user posts (evidence: `blog/views.py`)
- Contact and feedback → Domain models: stores submissions (evidence: `blog/views.py`)
- Admin management → Domain models: manages records (evidence: `blog/admin.py`)
- Domain models → SQLite database: persists records (evidence: `bloghub/settings.py`)
