# binit-singh7/allianceyuwaclub architecture

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

- Interactive diagram: https://gitdiagram.com/binit-singh7/allianceyuwaclub
- Repository: https://github.com/binit-singh7/allianceyuwaclub

## Overview

Shanti Yuwa Club is a Django website for a community organization. Visitors browse club information, programs, events and photos, or submit contact messages; prospective members verify email by OTP, register, and then manage profiles, event attendance and program participation. Administrators manage content and members through Django admin and a dashboard. The graph retains these product areas and the persistent domain layer. Relationships are limited to routes, model/form/helper references shown in the supplied excerpts or documented capabilities; unsampled subsystem links are omitted.

Main entry points: [`main/models.py`](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py) (Club content), [`main/admin.py`](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/admin.py) (Content and member admin), [`main/otp_utils.py`](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/otp_utils.py) (OTP delivery and checks), [`main/views.py`](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py) (Member workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public website"]
  node_public_pages["Club pages<br/>[views.py]"]
  node_programs_gallery["Programs and gallery<br/>[views.py]"]
  node_contact["Contact submissions<br/>[views.py]"]
end

subgraph group_members["Member portal"]
  node_otp_views["Email verification<br/>[otp_views.py]"]
  node_otp_logic["OTP delivery and checks<br/>[otp_utils.py]"]
  node_registration["Member registration<br/>[forms.py]"]
  node_member_views["Member workflows<br/>[views.py]"]
end

subgraph group_admin["Administration"]
  node_admin_management["Content and member admin<br/>[admin.py]"]
  node_admin_dashboard["Admin dashboard metrics<br/>[admin_dashboard.py]"]
end

subgraph group_domain["Domain and data"]
  node_forms["Website forms<br/>[forms.py]"]
  node_club_content[("Club content<br/>[models.py]")]
  node_member_records[("Member records<br/>[models.py]")]
  node_otp_records[("OTP records<br/>[models.py]")]
end

node_visitor(("Visitor"))
node_email_service{{"Email service"}}

node_visitor -->|"browses"| node_public_pages
node_visitor -->|"browses"| node_programs_gallery
node_visitor -->|"submits"| node_contact
node_visitor -->|"requests verification"| node_otp_views
node_visitor -->|"registers"| node_registration
node_visitor -->|"uses portal"| node_member_views
node_otp_views -->|"requests and checks"| node_otp_logic
node_otp_logic -->|"stores and reads"| node_otp_records
node_otp_logic -->|"sends OTP"| node_email_service
node_registration -->|"creates profile"| node_member_records
node_member_views -->|"reads and updates"| node_member_records
node_member_views -->|"reads club data"| node_club_content
node_contact -.->|"uses form"| node_forms
node_forms -->|"defines content forms"| node_club_content
node_public_pages -->|"reads club content"| node_club_content
node_programs_gallery -->|"reads program and gallery"| node_club_content
node_admin_management -->|"manages content"| node_club_content
node_admin_management -->|"manages members"| node_member_records
node_admin_management -.->|"renders dashboard"| node_admin_dashboard
node_admin_dashboard -->|"aggregates metrics"| node_member_records
node_admin_dashboard -->|"aggregates metrics"| node_club_content

click node_public_pages "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py"
click node_programs_gallery "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py"
click node_contact "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py"
click node_otp_views "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/otp_views.py"
click node_otp_logic "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/otp_utils.py"
click node_registration "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/forms.py"
click node_member_views "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py"
click node_admin_management "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/admin.py"
click node_admin_dashboard "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/admin_dashboard.py"
click node_forms "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/forms.py"
click node_club_content "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py"
click node_member_records "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py"
click node_otp_records "https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.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_public_pages,node_programs_gallery,node_contact toneBlue
class node_otp_views,node_otp_logic,node_registration,node_member_views toneAmber
class node_admin_management,node_admin_dashboard toneMint
class node_forms,node_club_content,node_member_records,node_otp_records toneRose
class node_visitor,node_email_service toneIndigo
```

## Components

### Public website

- [Club pages](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py): `main/views.py`
- [Programs and gallery](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py): `main/views.py`
- [Contact submissions](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py): `main/views.py`

### Member portal

- [Email verification](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/otp_views.py): `main/otp_views.py`
- [OTP delivery and checks](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/otp_utils.py): `main/otp_utils.py`
- [Member registration](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/forms.py): `main/forms.py`
- [Member workflows](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/views.py): `main/views.py`

### Administration

- [Content and member admin](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/admin.py): `main/admin.py`
- [Admin dashboard metrics](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/admin_dashboard.py): `main/admin_dashboard.py`

### Domain and data

- [Website forms](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/forms.py): `main/forms.py`
- [Club content](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py): `main/models.py`
- [Member records](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py): `main/models.py`
- [OTP records](https://github.com/binit-singh7/allianceyuwaclub/blob/main/main/models.py): `main/models.py`

### Other components

- **Visitor**
- **Email service**

## Connections

- Visitor → Club pages: browses
- Visitor → Programs and gallery: browses
- Visitor → Contact submissions: submits
- Visitor → Email verification: requests verification
- Visitor → Member registration: registers
- Visitor → Member workflows: uses portal
- Email verification → OTP delivery and checks: requests and checks (evidence: `main/otp_views.py`)
- OTP delivery and checks → OTP records: stores and reads (evidence: `main/otp_utils.py`)
- OTP delivery and checks → Email service: sends OTP (evidence: `main/otp_utils.py`)
- Member registration → Member records: creates profile (evidence: `main/forms.py`)
- Member workflows → Member records: reads and updates (evidence: `main/views.py`)
- Member workflows → Club content: reads club data (evidence: `main/views.py`)
- Contact submissions → Website forms: uses form (evidence: `main/views.py`)
- Website forms → Club content: defines content forms (evidence: `main/forms.py`)
- Club pages → Club content: reads club content (evidence: `main/views.py`)
- Programs and gallery → Club content: reads program and gallery (evidence: `main/views.py`)
- Content and member admin → Club content: manages content (evidence: `main/admin.py`)
- Content and member admin → Member records: manages members (evidence: `main/admin.py`)
- Content and member admin → Admin dashboard metrics: renders dashboard (evidence: `main/admin.py`)
- Admin dashboard metrics → Member records: aggregates metrics (evidence: `main/admin_dashboard.py`)
- Admin dashboard metrics → Club content: aggregates metrics (evidence: `main/admin_dashboard.py`)
