# swethamagesh05/task-manager architecture

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

- Interactive diagram: https://gitdiagram.com/swethamagesh05/task-manager
- Repository: https://github.com/swethamagesh05/task-manager

## Overview

This is a Django task manager: signed-in users create tasks, view them grouped by status, and delete their own tasks. URL configuration dispatches requests to task views, which query or mutate the Task model and render templates. Login and logout are also routed through Django authentication views. The excerpts show the view-to-model and view-to-template behavior; database configuration is visible, but the configured database backend is selected through an environment variable. No README was provided.

Main entry points: [`tasks/views.py`](https://github.com/swethamagesh05/task-manager/blob/main/tasks/views.py) (Task views), [`tasks/urls.py`](https://github.com/swethamagesh05/task-manager/blob/main/tasks/urls.py) (Task routes), [`taskmanager/urls.py`](https://github.com/swethamagesh05/task-manager/blob/main/taskmanager/urls.py) (Project routes), [`tasks/models.py`](https://github.com/swethamagesh05/task-manager/blob/main/tasks/models.py) (Task model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request routing"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_task_routes["Task routes<br/>[urls.py]"]
end

subgraph group_tasks["Task management"]
  node_task_views["Task views<br/>[views.py]"]
  node_task_model["Task model<br/>[models.py]"]
  node_task_store[("Configured database")]
  node_dashboard["Dashboard template<br/>[dashboard.html]"]
  node_create_form["Create-task template<br/>[create_task.html]"]
end

subgraph group_auth["Authentication"]
  node_login_template["Login template<br/>[login.html]"]
  node_django_auth["Django auth views"]
end

node_user(("User"))

node_user -->|"sends requests"| node_project_routes
node_project_routes -->|"includes routes"| node_task_routes
node_task_routes -->|"dispatches task requests"| node_task_views
node_task_routes -->|"dispatches auth requests"| node_django_auth
node_task_views -->|"queries and mutates"| node_task_model
node_task_views -->|"renders"| node_dashboard
node_task_views -->|"renders"| node_create_form
node_task_model -.->|"persists through ORM"| node_task_store
node_django_auth -.->|"may render"| node_login_template

click node_project_routes "https://github.com/swethamagesh05/task-manager/blob/main/taskmanager/urls.py"
click node_task_routes "https://github.com/swethamagesh05/task-manager/blob/main/tasks/urls.py"
click node_task_views "https://github.com/swethamagesh05/task-manager/blob/main/tasks/views.py"
click node_task_model "https://github.com/swethamagesh05/task-manager/blob/main/tasks/models.py"
click node_dashboard "https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/dashboard.html"
click node_create_form "https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/create_task.html"
click node_login_template "https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/registration/login.html"

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_task_routes,node_user toneBlue
class node_task_views,node_task_model,node_task_store,node_dashboard,node_create_form toneAmber
class node_login_template,node_django_auth toneMint
```

## Components

### Request routing

- [Project routes](https://github.com/swethamagesh05/task-manager/blob/main/taskmanager/urls.py): `taskmanager/urls.py`
- [Task routes](https://github.com/swethamagesh05/task-manager/blob/main/tasks/urls.py): `tasks/urls.py`

### Task management

- [Task views](https://github.com/swethamagesh05/task-manager/blob/main/tasks/views.py): `tasks/views.py`
- [Task model](https://github.com/swethamagesh05/task-manager/blob/main/tasks/models.py): `tasks/models.py`
- **Configured database**
- [Dashboard template](https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/dashboard.html): `tasks/templates/dashboard.html`
- [Create-task template](https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/create_task.html): `tasks/templates/create_task.html`

### Authentication

- [Login template](https://github.com/swethamagesh05/task-manager/blob/main/tasks/templates/registration/login.html): `tasks/templates/registration/login.html`
- **Django auth views**

### Other components

- **User**

## Connections

- User → Project routes: sends requests (evidence: `taskmanager/urls.py`)
- Project routes → Task routes: includes routes (evidence: `taskmanager/urls.py`)
- Task routes → Task views: dispatches task requests (evidence: `tasks/urls.py`)
- Task routes → Django auth views: dispatches auth requests (evidence: `tasks/urls.py`)
- Task views → Task model: queries and mutates (evidence: `tasks/views.py`)
- Task views → Dashboard template: renders (evidence: `tasks/views.py`)
- Task views → Create-task template: renders (evidence: `tasks/views.py`)
- Task model → Configured database: persists through ORM
- Django auth views → Login template: may render
