# anirbanpal2002/djangoapp_curd architecture

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

- Interactive diagram: https://gitdiagram.com/anirbanpal2002/djangoapp_curd
- Repository: https://github.com/anirbanpal2002/djangoapp_curd

## Overview

This Django application provides basic account access and customer-record management. A browser request enters the project URL configuration, is routed to a shop view, and may render a page or modify/query account and customer records. The customer workflow covers listing, adding, editing, and deleting records; account workflows cover registration, login, and logout. Registration also sends an email. The configured database is MySQL. Source excerpts show the views, routes, models, and settings; template contents and other unsampled behavior are not assumed.

Main entry points: [`shop/views.py`](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/views.py) (Account Views), [`shop/urls.py`](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/urls.py) (Shop Routes), [`Project_01/urls.py`](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/Project_01/urls.py) (Project Routes), [`shop/models.py`](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/models.py) (User Account Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Request Routing"]
  node_project_routes["Project Routes<br/>[urls.py]"]
  node_shop_routes["Shop Routes<br/>[urls.py]"]
end

subgraph group_accounts["Account Access"]
  node_account_views["Account Views<br/>[views.py]"]
  node_home_page["Home Page<br/>[home.html]"]
  node_login_page["Login Page<br/>[login.html]"]
  node_registration_page["Registration Page"]
  node_dashboard_page["Dashboard Page<br/>[dashboard.html]"]
end

subgraph group_customers["Customer Records"]
  node_customer_views["Customer Views<br/>[views.py]"]
  node_customer_list_page["Customer List Page<br/>[customaradd.html]"]
  node_customer_edit_page["Customer Edit Page<br/>[edit_customar.html]"]
end

subgraph group_persistence["Persistence and Messaging"]
  node_user_model["User Account Model<br/>[models.py]"]
  node_customer_model["Customer Model<br/>[models.py]"]
  node_database_config["Database Settings<br/>[settings.py]"]
  node_mysql[("MySQL Database")]
  node_smtp["SMTP Email Service"]
end

node_browser(("Browser User"))

node_browser -.->|"sends request"| node_project_routes
node_project_routes -->|"includes routes"| node_shop_routes
node_shop_routes -->|"routes account"| node_account_views
node_shop_routes -->|"routes customers"| node_customer_views
node_account_views -->|"renders"| node_home_page
node_account_views -->|"renders"| node_login_page
node_account_views -->|"renders"| node_registration_page
node_account_views -->|"renders"| node_dashboard_page
node_account_views -->|"queries and saves"| node_user_model
node_account_views -->|"sends registration email"| node_smtp
node_customer_views -->|"renders"| node_customer_list_page
node_customer_views -->|"renders"| node_customer_edit_page
node_customer_views -->|"queries and saves"| node_customer_model
node_database_config -->|"configures"| node_mysql
node_user_model -.->|"persists records"| node_mysql
node_customer_model -.->|"persists records"| node_mysql

click node_project_routes "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/Project_01/urls.py"
click node_shop_routes "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/urls.py"
click node_account_views "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/views.py"
click node_home_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/home.html"
click node_login_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/login.html"
click node_registration_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/create_account.html"
click node_dashboard_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/dashboard.html"
click node_user_model "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/models.py"
click node_customer_views "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/views.py"
click node_customer_list_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/customaradd.html"
click node_customer_edit_page "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/edit_customar.html"
click node_customer_model "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/models.py"
click node_database_config "https://github.com/anirbanpal2002/djangoapp_curd/blob/main/Project_01/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_project_routes,node_shop_routes,node_browser toneBlue
class node_account_views,node_home_page,node_login_page,node_registration_page,node_dashboard_page toneAmber
class node_customer_views,node_customer_list_page,node_customer_edit_page toneMint
class node_user_model,node_customer_model,node_database_config,node_mysql,node_smtp toneRose
```

## Components

### Request Routing

- [Project Routes](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/Project_01/urls.py): `Project_01/urls.py`
- [Shop Routes](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/urls.py): `shop/urls.py`

### Account Access

- [Account Views](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/views.py): `shop/views.py`
- [Home Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/home.html): `templates/home.html`
- [Login Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/login.html): `templates/login.html`
- [Registration Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/create_account.html): `templates/create_account.html`
- [Dashboard Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/dashboard.html): `templates/dashboard.html`

### Customer Records

- [Customer Views](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/views.py): `shop/views.py`
- [Customer List Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/customaradd.html): `templates/customaradd.html`
- [Customer Edit Page](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/templates/edit_customar.html): `templates/edit_customar.html`

### Persistence and Messaging

- [User Account Model](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/models.py): `shop/models.py`
- [Customer Model](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/shop/models.py): `shop/models.py`
- [Database Settings](https://github.com/anirbanpal2002/djangoapp_curd/blob/main/Project_01/settings.py): `Project_01/settings.py`
- **MySQL Database**
- **SMTP Email Service**

### Other components

- **Browser User**

## Connections

- Browser User → Project Routes: sends request
- Project Routes → Shop Routes: includes routes (evidence: `Project_01/urls.py`)
- Shop Routes → Account Views: routes account (evidence: `shop/urls.py`)
- Shop Routes → Customer Views: routes customers (evidence: `shop/urls.py`)
- Account Views → Home Page: renders (evidence: `shop/views.py`)
- Account Views → Login Page: renders (evidence: `shop/views.py`)
- Account Views → Registration Page: renders (evidence: `shop/views.py`)
- Account Views → Dashboard Page: renders (evidence: `shop/views.py`)
- Account Views → User Account Model: queries and saves (evidence: `shop/views.py`)
- Account Views → SMTP Email Service: sends registration email (evidence: `shop/views.py`)
- Customer Views → Customer List Page: renders (evidence: `shop/views.py`)
- Customer Views → Customer Edit Page: renders (evidence: `shop/views.py`)
- Customer Views → Customer Model: queries and saves (evidence: `shop/views.py`)
- Database Settings → MySQL Database: configures (evidence: `Project_01/settings.py`)
- User Account Model → MySQL Database: persists records
- Customer Model → MySQL Database: persists records
