How ahmetck3319/django-celery-celery-beat-integration works
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: views.py Account workflows · celery.py Celery app · tasks.py Email task · urls.py Project routing
Components 17
Web and accounts
- Project routing
AuthenticationProject/urls.py - Account routes
Core/urls.py - Account workflows
Core/views.py - Account pages
templates - Django authentication
Account state
- User records
- Reset records
Core/models.py - SQLite database
AuthenticationProject/settings.py
Background email
- Celery app
AuthenticationProject/celery.py - Email task
Core/tasks.py - RabbitMQ broker
- SMTP email
- Celery Beat
Social sign-in
- App setup
Core/apps.py - Signup handler
Core/signals.py - Allauth / Google
Other components
- Visitor
Connections 18
- Visitor → Project routing: requests pages
AuthenticationProject/urls.py - Project routing → Account routes: includes routes
AuthenticationProject/urls.py - Account routes → Account workflows: dispatches requests
Core/urls.py - Account workflows → Account pages: renders pages
Core/views.py - Account workflows → Django authentication: authenticates users
Core/views.py - Account workflows → User records: queries users
Core/views.py - Account workflows → Reset records: creates and validates
Core/views.py - Reset records → SQLite database: persists records
Core/models.py - Account workflows → Email task: queues email task
Core/views.py - Email task → SMTP email: sends reset email
Core/tasks.py - Celery app → Email task: discovers tasks
AuthenticationProject/celery.py - Celery app → RabbitMQ broker: uses configured broker
- Celery app → Celery app: loads Django settings
AuthenticationProject/celery.py - App setup → Signup handler: imports on startup
Core/apps.py - Signup handler → Allauth / Google: handles signup event
Core/signals.py - Project routing → Allauth / Google: includes account routes
AuthenticationProject/urls.py - Celery Beat → Email task: schedules periodic tasks
readme.md - Allauth / Google → User records: creates accounts