{"id":51489643,"url":"https://github.com/alon-p/example-django-with-celery","last_synced_at":"2026-07-07T10:30:32.010Z","repository":{"id":369862775,"uuid":"1291843362","full_name":"alon-p/example-django-with-celery","owner":"alon-p","description":"Add Celery to Django — a reference pattern written to be read by an AI coding agent and transplanted into your own project.","archived":false,"fork":false,"pushed_at":"2026-07-07T08:28:41.000Z","size":121,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-07T09:17:07.223Z","etag":null,"topics":["agentic-workflows","ai-agents","celery","claude-code","django","python","redis","reference-implementation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alon-p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-07-07T06:06:13.000Z","updated_at":"2026-07-07T08:28:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alon-p/example-django-with-celery","commit_stats":null,"previous_names":["alon-p/example-django-with-celery"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/alon-p/example-django-with-celery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alon-p%2Fexample-django-with-celery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alon-p%2Fexample-django-with-celery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alon-p%2Fexample-django-with-celery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alon-p%2Fexample-django-with-celery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alon-p","download_url":"https://codeload.github.com/alon-p/example-django-with-celery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alon-p%2Fexample-django-with-celery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35225022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-workflows","ai-agents","celery","claude-code","django","python","redis","reference-implementation"],"created_at":"2026-07-07T10:30:29.482Z","updated_at":"2026-07-07T10:30:32.003Z","avatar_url":"https://github.com/alon-p.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django + Celery — a reference pattern for AI coding agents\n\nThis repo is **not** a starter you clone and run. It's a reference\nimplementation of *how to add Celery to a Django project*, written to be **read\nby an AI coding agent** and transplanted into **your** project.\n\n## How to use it\n\nIn your own project, point your agent at the recipe and let it apply the pattern:\n\n```text\nRead CELERY_PATTERN.md at\nhttps://github.com/alon-p/example-django-with-celery/blob/main/CELERY_PATTERN.md\nand apply the same Celery integration to this project, adapting the project and app names to mine.\n```\n\nPrefer having the agent read the **raw file by URL** over cloning this repo into\nyour workspace — that keeps this repo's own agent-instruction files\n(`AGENTS.md`, `CLAUDE.md`) out of your project's context.\n\n## What it demonstrates\n\nA minimal, opinionated Celery setup you can lift piece by piece:\n\n- **Celery app bootstrap** — `example_django_with_celery/celery.py` and the\n  package `__init__.py` re-export that makes tasks register.\n- **Config in Django settings, per environment** — broker URL, an env-var eager\n  toggle for local dev, and always-eager in tests so the suite needs no broker\n  (`example_django_with_celery/settings.py`).\n- **A thin task delegating to a service** — `app_example/tasks.py` +\n  `app_example/services/notification_service.py`.\n- **Dispatching from a view** with `.delay()` — `app_example/views.py`.\n- **A test that exercises the task with no worker/broker** —\n  `app_example/tests/test_send_notification.py`.\n- **Broker + worker as docker-compose services** — the `redis` and\n  `celery_worker` services in `docker-compose.yml`.\n\n## The recipe\n\nThe full, file-by-file guide — every change, the reasoning behind it, plain-Django\nadaptations, and the identifiers to rename — lives in\n**[CELERY_PATTERN.md](./CELERY_PATTERN.md)**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falon-p%2Fexample-django-with-celery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falon-p%2Fexample-django-with-celery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falon-p%2Fexample-django-with-celery/lists"}