django-template is a Scaf template for creating production-ready Django web applications with modern tooling and best practices.
Generate Django projects with Docker Compose development environment, ASGI support, authentication, GraphQL API, optional Celery task queue, optional Sentry error tracking, and full CI/CD configuration for GitHub or GitLab.
- Django 6.0 with ASGI support via Daphne
- Docker Compose development environment with PostgreSQL, Redis, and Mailpit
- Authentication via django-allauth with email verification
- GraphQL API with Strawberry and DataLoader
- Optional Celery for distributed task processing with beat scheduler
- Optional Sentry integration for error tracking
- CI/CD scaffolding for GitHub Actions or GitLab CI
- Semantic Release automation for versioning and changelogs
- Secret Scanning with gitleaks in CI
- PyCharm & VS Code debug configurations included
- Nix development environment with direnv integration
- 1Password CLI integration for secrets management
- Choice of task runner (
make,task, orjust) - Comprehensive documentation for development, debugging, and upgrades
copier__project_name: Human-readable project namecopier__project_slug: Python identifier-style slugcopier__description: Short project descriptioncopier__author_name: Author namecopier__domain_name: Project domaincopier__email: Author emailcopier__timezone: Default timezone (e.g.,America/New_York)copier__use_celery: Enable Celery for task managementcopier__use_sentry: Enable Sentry error trackingcopier__task_runner: Choosemake,task, orjustcopier__configure_repo: Enable repository remote setupcopier__repo_provider:githuborgitlabcopier__repo_org: Organization/group namecopier__repo_name: Repository namecopier__create_repo: Auto-create repository if missingcopier__repo_visibility:privateorpubliccopier__ci_provider: CI provider (inferred from repo provider)copier__enable_semantic_release: Include semantic-release automationcopier__github_semantic_release_auth:github_tokenorgithub_appcopier__enable_secret_scanning: Include gitleaks secret scanning
# Local path
scaf my-django-project ./django-template
# Git URL
scaf my-django-project https://github.com/getscaf/django-template.gitRun local render tests:
make test-template-renderCI runs the same command in .github/workflows/template-render-tests.yaml.
Each generated project includes:
docs/development.md- Local development setup and workflowsdocs/debug.md- Debugging with PyCharm and VS Codedocs/project-overview.md- Architecture and technology stackdocs/using-template.md- Day-to-day template usagedocs/upgrading.md- Copier update workflowdocs/semantic-release-github.md(when GitHub + semantic-release is enabled)docs/semantic-release-gitlab.md(when GitLab + semantic-release is enabled)
These cover day-to-day usage and copier update workflow for downstream projects.
Apache-2.0. See LICENSE.
