|
1 | | -# Django Boilerplate |
| 1 | +# SaaS Pegasus Django Boilerplate (Open Source Edition) |
2 | 2 |
|
3 | | -The original SaaS Boilerplate for Django, trusted by thousands. |
| 3 | +**The original SaaS boilerplate for Django — trusted by thousands.** |
| 4 | + |
| 5 | +A free, open-source, production-grade starting point for your next Django application. Spin up a |
| 6 | +Django app with a modern front-end stack and built-in essentials in minutes. |
| 7 | +Optimized for building in the AI-agent era. |
| 8 | + |
| 9 | +This is the **open-source edition** of [SaaS Pegasus](https://www.saaspegasus.com/), the Django SaaS |
| 10 | +boilerplate that has powered thousands of startups and products since 2019. |
| 11 | +It gives you a real, batteries-included foundation to build on, and a taste of the architecture, |
| 12 | +conventions, and tooling used by SaaS Pegasus projects. |
| 13 | + |
| 14 | +> **Looking for more?** |
| 15 | +> The pro version of SaaS Pegasus adds Stripe subscriptions, teams & |
| 16 | +> multi-tenancy, a host of AI and agent-based capabilities, one-click deployments, and much more. |
| 17 | +> **[See everything in SaaS Pegasus Pro →](https://www.saaspegasus.com/)** |
| 18 | +
|
| 19 | +## What's included |
| 20 | + |
| 21 | +This boilerplate ships with a complete, modern Django foundation: |
| 22 | + |
| 23 | +- 🐍 **Django 6 on Python 3.14** — a clean, well-organized project structure following Django best practices. |
| 24 | +- 🔐 **Authentication** — sign-up, login, password reset, and email verification via [django-allauth](https://docs.allauth.org/). |
| 25 | +- ⚡ **HTMX + Alpine.js** — single-page-app interactivity without the single-page-app complexity. |
| 26 | +- 🎨 **Tailwind CSS v4 + DaisyUI** — a modern, themeable component library, integrated with [Vite](https://vite.dev/) via [django-vite](https://github.com/MrBin99/django-vite). |
| 27 | +- 🔌 **REST API** — built on [Django REST Framework](https://www.django-rest-framework.org/) with an auto-generated, OpenAPI-typed client. |
| 28 | +- 🧵 **Background tasks** — [Celery](https://docs.celeryq.dev/) workers and scheduled jobs, backed by Redis. |
| 29 | +- 🐘 **Postgres** — the standard Django database, ready to go. |
| 30 | +- 🐳 **Docker** — local services (Postgres, Redis) wired up with Docker Compose. |
| 31 | +- 🛠️ **Tooling** — Uv for Python, Vite for front end, Ruff formatting/linting, pre-commit hooks, a test suite, and GitHub Actions CI. |
| 32 | +- 🤖 **Agent-ready** — ships with `CLAUDE.md`/`AGENTS.md` and built-in skills files, so coding agents understand how to work with the codebase out of the box. |
| 33 | + |
| 34 | +## Custom codebase creator |
| 35 | + |
| 36 | +You can create a free, personalized version of this project using the [SaaS Pegasus codebase creator](https://www.saaspegasus.com/projects/) |
| 37 | +(requires signup). This lets you change project details, add/remove features, and change your preferred coding assistant. |
| 38 | +You'll also get one-click upgrades and tools for coding agents to configure your project for you. |
| 39 | + |
| 40 | +Don't need customizations? That's fine too, just fork this project and start coding! |
| 41 | + |
| 42 | +## Open-source edition vs. SaaS Pegasus Pro |
| 43 | + |
| 44 | +This repo is a great way to start hobby/personal Django projects and evaluate SaaS Pegasus. |
| 45 | +The pro version is more suitable for business-grade SaaS and AI applications. |
| 46 | + |
| 47 | +| Feature | This repo | SaaS Pegasus Pro | |
| 48 | +| --- | :---: | :---: | |
| 49 | +| Django + Postgres + Celery foundation | ✅ | ✅ | |
| 50 | +| Authentication (allauth) | ✅ | ✅ | |
| 51 | +| REST API (DRF) | ✅ | ✅ | |
| 52 | +| Tailwind + DaisyUI + vite front end | ✅ | ✅ | |
| 53 | +| Docker & CI | ✅ | ✅ | |
| 54 | +| **Stripe subscriptions & billing** | — | ✅ | |
| 55 | +| **Teams & multi-tenancy** | — | ✅ | |
| 56 | +| **Built-in AI chat/agent app** | — | ✅ | |
| 57 | +| **One-click production deployment** (Render, Fly, Heroku, GCP, AWS…) | — | ✅ | |
| 58 | +| **Social & 2FA login, API keys, user impersonation** | — | ✅ | |
| 59 | +| **Dedicated support & priority fixes** | Community | ✅ | |
| 60 | + |
| 61 | +**[Check out SaaS Pegasus Pro →](https://www.saaspegasus.com/)** |
| 62 | + |
| 63 | +--- |
4 | 64 |
|
5 | 65 | ## Quickstart |
6 | 66 |
|
@@ -171,4 +231,23 @@ find . -name '*.py' | entr uv run manage.py test apps.web.tests.test_basic_views |
171 | 231 |
|
172 | 232 | --- |
173 | 233 |
|
174 | | -*Built with [SaaS Pegasus](https://www.saaspegasus.com/), the Django SaaS boilerplate.* |
| 234 | +## Documentation |
| 235 | + |
| 236 | +This project is built with [SaaS Pegasus](https://www.saaspegasus.com/), and all relevant parts of the |
| 237 | +[Pegasus documentation](https://docs.saaspegasus.com/) apply here too. |
| 238 | + |
| 239 | +Splitting out the open-source documentation from the pro documentation is still a work in progress. |
| 240 | + |
| 241 | +## Support |
| 242 | + |
| 243 | +This open-source edition is provided as-is, and is supported by the community. Issues and pull |
| 244 | +requests are welcome. |
| 245 | + |
| 246 | +For dedicated support, priority bug fixes, and the full feature set, check out |
| 247 | +[SaaS Pegasus](https://www.saaspegasus.com/). |
| 248 | +There is also a community Slack instance for all Pegasus Pro customers. |
| 249 | + |
| 250 | +## License |
| 251 | + |
| 252 | +This boilerplate is released under the [MIT License](./LICENSE) — free to use for personal and |
| 253 | +commercial projects. |
0 commit comments