How saaspegasus/django-boilerplate works
SaaS Pegasus is a Django SaaS starter: a visitor reaches the Django web application, uses its authentication and account features, and can receive web/API responses; background work is handled by Celery. The README also documents a generated OpenAPI client, PostgreSQL, Redis, and the HTMX/Alpine and Tailwind/DaisyUI front end. Sampled code confirms user form/model/helper responsibilities and the Celery task setup. Other product branches are included from README capabilities; their implementation paths were not sampled.
Main entry points: urls.py Django web app · forms.py Signup forms · settings.py REST API · celery.py Celery worker
Components 16
Web experience
- Django web app
project/urls.py - Web views
apps/web/views.py - Page metadata
apps/web/meta.py - HTMX and styling
Identity and users
- Allauth authentication
project/settings.py - Signup forms
apps/users/forms.py - User accounts
apps/users/models.py - User validation
apps/users/helpers.py - Account signals
apps/users/signals.py
API client
- REST API
project/settings.py - Generated API client
api-client/runtime.ts
Application runtime
- PostgreSQL
- Celery worker
project/celery.py - Scheduled tasks
apps/web/tasks.py - Redis broker
Other components
- Visitor
Connections 16
- Visitor → Django web app: requests pages
README.md - Django web app → Web views: routes requests
- Web views → Visitor: returns pages
- Django web app → HTMX and styling: serves interface
README.md - Django web app → Allauth authentication: provides sign-in
README.md - Allauth authentication → Signup forms: uses signup form
project/settings.py - Signup forms → User validation: validates avatar
apps/users/forms.py - Signup forms → User accounts: uses account model
apps/users/forms.py - User accounts → PostgreSQL: persists accounts
README.md - Django web app → Page metadata: builds page metadata
- Visitor → REST API: calls API
README.md - Generated API client → REST API: sends HTTP requests
README.md - REST API → Visitor: returns API data
- Celery worker → Scheduled tasks: discovers tasks
project/celery.py - Scheduled tasks → PostgreSQL: clears expired sessions
README.md - Celery worker → Redis broker: uses broker