# amro-alsaqer/django_2pm architecture

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

- Interactive diagram: https://gitdiagram.com/amro-alsaqer/django_2pm
- Repository: https://github.com/amro-alsaqer/django_2pm

## Overview

This is a Django project-and-task manager. Users can register or log in, then create, search, update, and delete their projects; project update pages also support task creation, completion changes, and deletion. Project records include ownership, category, status, and timestamps, while tasks belong to projects. The excerpts show URL dispatch, view-to-form/model use, and configured PostgreSQL settings. Task and template details are limited to the shown routes and tree; the database connection is represented as framework-mediated.

Main entry points: [`projects/urls.py`](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/urls.py) (Project routes), [`projects/models.py`](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/models.py) (Projects, tasks, categories), [`projects/views.py`](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py) (Project creation), [`accounts/urls.py`](https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/urls.py) (Account routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_account_routes["Account routes<br/>[urls.py]"]
  node_registration["Registration<br/>[views.py]"]
  node_account_forms["Login and signup forms<br/>[forms.py]"]
end

subgraph group_projects["Project workflow"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_project_list["Project listing<br/>[views.py]"]
  node_project_create["Project creation<br/>[views.py]"]
  node_project_manage["Project update and deletion<br/>[views.py]"]
  node_task_manage["Task operations<br/>[views.py]"]
  node_project_forms["Project forms<br/>[forms.py]"]
end

subgraph group_domain["Domain and persistence"]
  node_project_model["Projects, tasks, categories<br/>[models.py]"]
  node_postgres[("PostgreSQL")]
end

subgraph group_web["Web interface"]
  node_registration_pages["Registration pages"]
  node_project_pages["Project pages"]
  node_shared_pages["Shared page templates"]
  node_settings["Django configuration<br/>[settings.py]"]
end

node_visitor(("User"))

node_visitor -->|"opens account"| node_account_routes
node_account_routes -->|"dispatches signup"| node_registration
node_account_routes -->|"configures login"| node_account_forms
node_registration -->|"uses signup form"| node_account_forms
node_registration -->|"renders registration"| node_registration_pages
node_visitor -->|"opens projects"| node_project_routes
node_project_routes -->|"dispatches listing"| node_project_list
node_project_routes -->|"dispatches creation"| node_project_create
node_project_routes -->|"dispatches management"| node_project_manage
node_project_routes -->|"dispatches tasks"| node_task_manage
node_project_list -->|"queries projects"| node_project_model
node_project_create -->|"validates input"| node_project_forms
node_project_create -->|"creates project"| node_project_model
node_project_manage -->|"validates updates"| node_project_forms
node_project_manage -->|"updates or deletes"| node_project_model
node_task_manage -->|"creates or changes tasks"| node_project_model
node_project_list -->|"renders listing"| node_project_pages
node_project_create -->|"renders creation"| node_project_pages
node_project_manage -->|"renders project forms"| node_project_pages
node_project_model -.->|"persists through ORM"| node_postgres
node_settings -->|"configures database"| node_postgres

click node_account_routes "https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/urls.py"
click node_registration "https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/views.py"
click node_account_forms "https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/forms.py"
click node_project_routes "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/urls.py"
click node_project_list "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py"
click node_project_create "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py"
click node_project_manage "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py"
click node_task_manage "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py"
click node_project_forms "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/forms.py"
click node_project_model "https://github.com/amro-alsaqer/django_2pm/blob/main/projects/models.py"
click node_registration_pages "https://github.com/amro-alsaqer/django_2pm/tree/main/accounts/templates/registration"
click node_project_pages "https://github.com/amro-alsaqer/django_2pm/tree/main/projects/templates/project"
click node_shared_pages "https://github.com/amro-alsaqer/django_2pm/tree/main/projects/templates"
click node_settings "https://github.com/amro-alsaqer/django_2pm/blob/main/projects_management/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_account_routes,node_registration,node_account_forms,node_visitor toneBlue
class node_project_routes,node_project_list,node_project_create,node_project_manage,node_task_manage,node_project_forms toneAmber
class node_project_model,node_postgres toneMint
class node_registration_pages,node_project_pages,node_shared_pages,node_settings toneRose
```

## Components

### Accounts

- [Account routes](https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/urls.py): `accounts/urls.py`
- [Registration](https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/views.py): `accounts/views.py`
- [Login and signup forms](https://github.com/amro-alsaqer/django_2pm/blob/main/accounts/forms.py): `accounts/forms.py`

### Project workflow

- [Project routes](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/urls.py): `projects/urls.py`
- [Project listing](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py): `projects/views.py`
- [Project creation](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py): `projects/views.py`
- [Project update and deletion](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py): `projects/views.py`
- [Task operations](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/views.py): `projects/views.py`
- [Project forms](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/forms.py): `projects/forms.py`

### Domain and persistence

- [Projects, tasks, categories](https://github.com/amro-alsaqer/django_2pm/blob/main/projects/models.py): `projects/models.py`
- **PostgreSQL**

### Web interface

- [Registration pages](https://github.com/amro-alsaqer/django_2pm/tree/main/accounts/templates/registration): `accounts/templates/registration`
- [Project pages](https://github.com/amro-alsaqer/django_2pm/tree/main/projects/templates/project): `projects/templates/project`
- [Shared page templates](https://github.com/amro-alsaqer/django_2pm/tree/main/projects/templates): `projects/templates`
- [Django configuration](https://github.com/amro-alsaqer/django_2pm/blob/main/projects_management/settings.py): `projects_management/settings.py`

### Other components

- **User**

## Connections

- User → Account routes: opens account (evidence: `accounts/urls.py`)
- Account routes → Registration: dispatches signup (evidence: `accounts/urls.py`)
- Account routes → Login and signup forms: configures login (evidence: `accounts/urls.py`)
- Registration → Login and signup forms: uses signup form (evidence: `accounts/views.py`)
- Registration → Registration pages: renders registration (evidence: `accounts/views.py`)
- User → Project routes: opens projects (evidence: `projects/urls.py`)
- Project routes → Project listing: dispatches listing (evidence: `projects/urls.py`)
- Project routes → Project creation: dispatches creation (evidence: `projects/urls.py`)
- Project routes → Project update and deletion: dispatches management (evidence: `projects/urls.py`)
- Project routes → Task operations: dispatches tasks (evidence: `projects/urls.py`)
- Project listing → Projects, tasks, categories: queries projects (evidence: `projects/views.py`)
- Project creation → Project forms: validates input (evidence: `projects/views.py`)
- Project creation → Projects, tasks, categories: creates project (evidence: `projects/views.py`)
- Project update and deletion → Project forms: validates updates (evidence: `projects/views.py`)
- Project update and deletion → Projects, tasks, categories: updates or deletes (evidence: `projects/views.py`)
- Task operations → Projects, tasks, categories: creates or changes tasks (evidence: `projects/views.py`)
- Project listing → Project pages: renders listing (evidence: `projects/views.py`)
- Project creation → Project pages: renders creation (evidence: `projects/views.py`)
- Project update and deletion → Project pages: renders project forms (evidence: `projects/views.py`)
- Projects, tasks, categories → PostgreSQL: persists through ORM
- Django configuration → PostgreSQL: configures database (evidence: `projects_management/settings.py`)
