# ashishtamang07/django_projects architecture

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

- Interactive diagram: https://gitdiagram.com/ashishtamang07/django_projects
- Repository: https://github.com/ashishtamang07/django_projects

## Overview

This repository is a collection of small Django learning projects, not one connected application. Its examples cover blog profiles, CRUD, REST APIs, user authentication, email, image uploads, and model relationships/inheritance. The principal visible workflow is the JWT project’s user account operations: serializers validate registration and password changes, and the reset serializer sends a reset link and applies a new password. Source excerpts are sparse, so most project-level relationships are left unasserted; the edges shown are supported by the excerpted signal handlers and serializer.

Main entry points: [`z10_jwtproject/api/serializers.py`](https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/serializers.py) (Account serializers), [`blog_application/django_blog/users/signals.py`](https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/signals.py) (Profile signals), [`z10_jwtproject/api/views.py`](https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/views.py) (JWT endpoints), [`one_to_one_relation/account/signals.py`](https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/signals.py) (Delete signal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_blog["Blog profiles"]
  node_blogapp["Blog app"]
  node_profilemodels[("Profile model<br/>[models.py]")]
  node_profilesignals["Profile signals<br/>[signals.py]"]
  node_usersconfig["Users app config<br/>[apps.py]"]
end

subgraph group_api["API examples"]
  node_api_example["Basic API"]
  node_class_api["Class API views"]
  node_jwt_views["JWT endpoints<br/>[views.py]"]
  node_jwt_serializers["Account serializers<br/>[serializers.py]"]
  node_jwt_user[("Custom user model<br/>[models.py]")]
  node_email_service["Django mail"]
end

subgraph group_web["Web features"]
  node_crud["Enrollment CRUD"]
  node_image_upload["Image uploads"]
  node_smtp_example["SMTP example"]
end

subgraph group_models["Model patterns"]
  node_history_example["History example"]
  node_inheritance_example["Inheritance example"]
  node_relations_example["Model relations"]
  node_one_to_one_model[("One-to-one models<br/>[models.py]")]
  node_one_to_one_signals["Delete signal<br/>[signals.py]"]
  node_one_to_one_config["Account app config<br/>[apps.py]"]
end

node_reader(("User"))

node_reader -->|"uses"| node_blogapp
node_usersconfig -->|"loads"| node_profilesignals
node_profilesignals -->|"creates profile"| node_profilemodels
node_reader -->|"requests"| node_jwt_views
node_jwt_views -.->|"dispatches to"| node_jwt_serializers
node_jwt_serializers -->|"creates and updates"| node_jwt_user
node_jwt_serializers -->|"sends reset mail"| node_email_service
node_reader -.->|"uses"| node_crud
node_reader -.->|"uses"| node_image_upload
node_reader -.->|"uses"| node_smtp_example
node_one_to_one_config -->|"loads"| node_one_to_one_signals
node_one_to_one_signals -->|"deletes related user"| node_one_to_one_model

click node_blogapp "https://github.com/ashishtamang07/django_projects/tree/main/blog_application/django_blog/blog"
click node_profilemodels "https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/models.py"
click node_profilesignals "https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/signals.py"
click node_usersconfig "https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/apps.py"
click node_api_example "https://github.com/ashishtamang07/django_projects/tree/main/api/myapi"
click node_class_api "https://github.com/ashishtamang07/django_projects/tree/main/drf_geeky/class_based_apiview"
click node_jwt_views "https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/views.py"
click node_jwt_serializers "https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/serializers.py"
click node_jwt_user "https://github.com/ashishtamang07/django_projects/blob/main/customuser/api/models.py"
click node_crud "https://github.com/ashishtamang07/django_projects/tree/main/crudproject/enroll"
click node_image_upload "https://github.com/ashishtamang07/django_projects/tree/main/image_uploder/myapp"
click node_smtp_example "https://github.com/ashishtamang07/django_projects/tree/main/email_smtp/account"
click node_history_example "https://github.com/ashishtamang07/django_projects/tree/main/history/account"
click node_inheritance_example "https://github.com/ashishtamang07/django_projects/tree/main/model_inheritance/account"
click node_relations_example "https://github.com/ashishtamang07/django_projects/tree/main/model_relations/account"
click node_one_to_one_model "https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/models.py"
click node_one_to_one_signals "https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/signals.py"
click node_one_to_one_config "https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/apps.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_blogapp,node_profilemodels,node_profilesignals,node_usersconfig,node_reader toneBlue
class node_api_example,node_class_api,node_jwt_views,node_jwt_serializers,node_jwt_user,node_email_service toneAmber
class node_crud,node_image_upload,node_smtp_example toneMint
class node_history_example,node_inheritance_example,node_relations_example,node_one_to_one_model,node_one_to_one_signals,node_one_to_one_config toneRose
```

## Components

### Blog profiles

- [Blog app](https://github.com/ashishtamang07/django_projects/tree/main/blog_application/django_blog/blog): `blog_application/django_blog/blog`
- [Profile model](https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/models.py): `blog_application/django_blog/users/models.py`
- [Profile signals](https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/signals.py): `blog_application/django_blog/users/signals.py`
- [Users app config](https://github.com/ashishtamang07/django_projects/blob/main/blog_application/django_blog/users/apps.py): `blog_application/django_blog/users/apps.py`

### API examples

- [Basic API](https://github.com/ashishtamang07/django_projects/tree/main/api/myapi): `api/myapi`
- [Class API views](https://github.com/ashishtamang07/django_projects/tree/main/drf_geeky/class_based_apiview): `drf_geeky/class_based_apiview`
- [JWT endpoints](https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/views.py): `z10_jwtproject/api/views.py`
- [Account serializers](https://github.com/ashishtamang07/django_projects/blob/main/z10_jwtproject/api/serializers.py): `z10_jwtproject/api/serializers.py`
- [Custom user model](https://github.com/ashishtamang07/django_projects/blob/main/customuser/api/models.py): `customuser/api/models.py`
- **Django mail**

### Web features

- [Enrollment CRUD](https://github.com/ashishtamang07/django_projects/tree/main/crudproject/enroll): `crudproject/enroll`
- [Image uploads](https://github.com/ashishtamang07/django_projects/tree/main/image_uploder/myapp): `image_uploder/myapp`
- [SMTP example](https://github.com/ashishtamang07/django_projects/tree/main/email_smtp/account): `email_smtp/account`

### Model patterns

- [History example](https://github.com/ashishtamang07/django_projects/tree/main/history/account): `history/account`
- [Inheritance example](https://github.com/ashishtamang07/django_projects/tree/main/model_inheritance/account): `model_inheritance/account`
- [Model relations](https://github.com/ashishtamang07/django_projects/tree/main/model_relations/account): `model_relations/account`
- [One-to-one models](https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/models.py): `one_to_one_relation/account/models.py`
- [Delete signal](https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/signals.py): `one_to_one_relation/account/signals.py`
- [Account app config](https://github.com/ashishtamang07/django_projects/blob/main/one_to_one_relation/account/apps.py): `one_to_one_relation/account/apps.py`

### Other components

- **User**

## Connections

- User → Blog app: uses
- Users app config → Profile signals: loads (evidence: `blog_application/django_blog/users/apps.py`)
- Profile signals → Profile model: creates profile (evidence: `blog_application/django_blog/users/signals.py`)
- User → JWT endpoints: requests
- JWT endpoints → Account serializers: dispatches to
- Account serializers → Custom user model: creates and updates (evidence: `z10_jwtproject/api/serializers.py`)
- Account serializers → Django mail: sends reset mail (evidence: `z10_jwtproject/api/serializers.py`)
- User → Enrollment CRUD: uses
- User → Image uploads: uses
- User → SMTP example: uses
- Account app config → Delete signal: loads (evidence: `one_to_one_relation/account/apps.py`)
- Delete signal → One-to-one models: deletes related user (evidence: `one_to_one_relation/account/signals.py`)
