# ahmetck3319/django-celery-celery-beat-integration architecture

> Architecture diagram of the GitHub repository ahmetck3319/django-celery-celery-beat-integration, 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/ahmetck3319/django-celery-celery-beat-integration
- Repository: https://github.com/ahmetck3319/django-celery-celery-beat-integration

## Overview

This Django application supports account registration, login/logout, and password recovery. A recovery request creates a reset record, queues an email task, and later validates the reset link before changing the password. It also enables Google social authentication and includes a Celery greeting task; the README describes configuring periodic tasks with Celery Beat. The sampled code shows the web-to-task path, but not worker execution, broker transport, or Beat scheduling internals.

Main entry points: [`Core/views.py`](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/views.py) (Account workflows), [`AuthenticationProject/celery.py`](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/celery.py) (Celery app), [`Core/tasks.py`](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/tasks.py) (Email task), [`AuthenticationProject/urls.py`](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/urls.py) (Project routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and accounts"]
  node_routes["Project routing<br/>[urls.py]"]
  node_core_routes["Account routes<br/>[urls.py]"]
  node_views["Account workflows<br/>[views.py]"]
  node_pages["Account pages"]
  node_auth["Django authentication"]
end

subgraph group_state["Account state"]
  node_user_store[("User records")]
  node_reset_model["Reset records<br/>[models.py]"]
  node_database[("SQLite database<br/>[settings.py]")]
end

subgraph group_async["Background email"]
  node_celery_app["Celery app<br/>[celery.py]"]
  node_task["Email task<br/>[tasks.py]"]
  node_broker["RabbitMQ broker"]
  node_mail["SMTP email"]
  node_beat["Celery Beat"]
end

subgraph group_social["Social sign-in"]
  node_app_setup["App setup<br/>[apps.py]"]
  node_signal["Signup handler<br/>[signals.py]"]
  node_allauth["Allauth / Google"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests pages"| node_routes
node_routes -->|"includes routes"| node_core_routes
node_core_routes -->|"dispatches requests"| node_views
node_views -->|"renders pages"| node_pages
node_views -->|"authenticates users"| node_auth
node_views -->|"queries users"| node_user_store
node_views -->|"creates and validates"| node_reset_model
node_reset_model -->|"persists records"| node_database
node_views -->|"queues email task"| node_task
node_task -->|"sends reset email"| node_mail
node_celery_app -->|"discovers tasks"| node_task
node_celery_app -->|"uses configured broker"| node_broker
node_celery_app -->|"loads Django settings"| node_celery_app
node_app_setup -->|"imports on startup"| node_signal
node_signal -->|"handles signup event"| node_allauth
node_routes -->|"includes account routes"| node_allauth
node_beat -.->|"schedules periodic tasks"| node_task
node_allauth -.->|"creates accounts"| node_user_store

click node_routes "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/urls.py"
click node_core_routes "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/urls.py"
click node_views "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/views.py"
click node_pages "https://github.com/ahmetck3319/django-celery-celery-beat-integration/tree/main/templates"
click node_reset_model "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/models.py"
click node_database "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/settings.py"
click node_celery_app "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/celery.py"
click node_task "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/tasks.py"
click node_app_setup "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/apps.py"
click node_signal "https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/signals.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_routes,node_core_routes,node_views,node_pages,node_auth toneBlue
class node_user_store,node_reset_model,node_database toneAmber
class node_celery_app,node_task,node_broker,node_mail,node_beat toneMint
class node_app_setup,node_signal,node_allauth toneRose
class node_visitor toneIndigo
```

## Components

### Web and accounts

- [Project routing](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/urls.py): `AuthenticationProject/urls.py`
- [Account routes](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/urls.py): `Core/urls.py`
- [Account workflows](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/views.py): `Core/views.py`
- [Account pages](https://github.com/ahmetck3319/django-celery-celery-beat-integration/tree/main/templates): `templates`
- **Django authentication**

### Account state

- **User records**
- [Reset records](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/models.py): `Core/models.py`
- [SQLite database](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/settings.py): `AuthenticationProject/settings.py`

### Background email

- [Celery app](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/AuthenticationProject/celery.py): `AuthenticationProject/celery.py`
- [Email task](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/tasks.py): `Core/tasks.py`
- **RabbitMQ broker**
- **SMTP email**
- **Celery Beat**

### Social sign-in

- [App setup](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/apps.py): `Core/apps.py`
- [Signup handler](https://github.com/ahmetck3319/django-celery-celery-beat-integration/blob/main/Core/signals.py): `Core/signals.py`
- **Allauth / Google**

### Other components

- **Visitor**

## Connections

- Visitor → Project routing: requests pages (evidence: `AuthenticationProject/urls.py`)
- Project routing → Account routes: includes routes (evidence: `AuthenticationProject/urls.py`)
- Account routes → Account workflows: dispatches requests (evidence: `Core/urls.py`)
- Account workflows → Account pages: renders pages (evidence: `Core/views.py`)
- Account workflows → Django authentication: authenticates users (evidence: `Core/views.py`)
- Account workflows → User records: queries users (evidence: `Core/views.py`)
- Account workflows → Reset records: creates and validates (evidence: `Core/views.py`)
- Reset records → SQLite database: persists records (evidence: `Core/models.py`)
- Account workflows → Email task: queues email task (evidence: `Core/views.py`)
- Email task → SMTP email: sends reset email (evidence: `Core/tasks.py`)
- Celery app → Email task: discovers tasks (evidence: `AuthenticationProject/celery.py`)
- Celery app → RabbitMQ broker: uses configured broker
- Celery app → Celery app: loads Django settings (evidence: `AuthenticationProject/celery.py`)
- App setup → Signup handler: imports on startup (evidence: `Core/apps.py`)
- Signup handler → Allauth / Google: handles signup event (evidence: `Core/signals.py`)
- Project routing → Allauth / Google: includes account routes (evidence: `AuthenticationProject/urls.py`)
- Celery Beat → Email task: schedules periodic tasks (evidence: `readme.md`)
- Allauth / Google → User records: creates accounts
