Starting a subscription web application usually means spending your first weeks building plumbing that almost every software product shares. You end up wiring user accounts, login flows, dashboards, billing webhooks, account settings, and deployment scripts before touching your actual product idea. Django gives you a capable backend framework right out of the box, yet a fresh project still needs an opinionated application layout and an interactive frontend approach.
HTMX lets you drive dynamic interface behavior by returning HTML from Django views instead of wiring up a separate React or Vue single-page application. That keeps your server logic and template rendering in one place while still giving users responsive interactions.
Starter kits package those baseline pieces into a working Django codebase so you can focus sooner on what makes your product distinct. In this guide, we examine SaaS Pegasus, SpeedPy, and smaller open-source projects, looking at what features they include, how their stacks are structured, and where you will still write custom code before launching.
Django and HTMX as a SaaS Development Approach
How Django and HTMX Work Together
In a Django and HTMX setup, Django views process requests, run business or database logic, and render HTML templates or partial HTML fragments. Instead of loading an entire new page on every click, HTMX attributes such as hx-get, hx-post, hx-target, and hx-swap trigger HTTP requests from elements on the page and splice the returned HTML into the DOM.
Picture a customer settings page or usage dashboard where you filter a billing table, update profile details, or switch a workspace setting. An HTMX request posts the change to a Django view, updates the database, and returns just the updated table row or status banner rather than refreshing the whole screen.
HTMX does not replace Django, and it is not a full client-side state or component framework like React. Django still handles routing, forms, permissions, ORM queries, and template rendering on the server, while HTMX acts as a thin bridge between HTML interactions and server responses.
Why Developers Use HTMX Instead of a Separate JavaScript Frontend
Choosing a server-rendered Django and HTMX architecture changes how your backend and frontend talk to each other. Rather than maintaining a decoupled SPA that talks to Django through a separate JSON API for every interactive screen, your Django templates stay at the center of the user interface.
Returning HTML fragments directly from views cuts out serialization boilerplate and keeps validation and rendering logic closer together. You can still reach for JavaScript when a widget needs it, without building the whole application around a client-side framework.
At the same time, HTMX is not a universal fit for every screen. A rich browser-based design canvas, collaborative document editor, or interface with heavy local client state can become awkward to manage over round-trip HTML swaps, where dedicated JavaScript tooling may serve you better.
Where Alpine.js Fits
Many Django and HTMX codebases pair HTMX with Alpine.js to handle small client-side interactions cleanly. HTMX handles server round trips and HTML updates, while Alpine.js adds lightweight behavior right inside your markup for dropdown menus, modals, tabs, disclosure panels, or simple client toggles.
Having both means you do not have to round-trip to the server just to open a menu or switch a tab. You keep server state on the server and use small client scripts only where immediate browser interactivity helps.
What a SaaS Starter Kit Actually Provides
A basic django-admin startproject command gives you settings files, a default project layout, database configuration, and local development commands. A SaaS starter kit goes further by wiring together common product features so you do not start from a blank slate.
Depending on the codebase, a SaaS starter kit may include several foundational areas.
- User registration and authentication cover sign-up, login, password resets, email verification, and session handling.
- Account settings and profile management let users update personal details, passwords, or preferences.
- Dashboard and application navigation give logged-in users a signed-in layout, navigation chrome, and example views.
- Subscription or payment integration connects checkout flows, plans, or payment provider events to user or organization records.
- Team accounts and permissions allow multiple users to belong to a shared workspace or organization with distinct roles.
- Background tasks and email delivery handle queued jobs and transactional emails outside the web request cycle.
- API functionality exposes endpoints or tokens for external clients or integrations.
- Deployment configuration provides Dockerfiles, environment templates, or hosting recipes.
Not every starter kit includes all eight areas. Some focus tightly on basic auth and a single payment flow, while others bundle multi-tenancy, APIs, background workers, and broader application scaffolding.
1. SaaS Pegasus
Its Django and HTMX Architecture
SaaS Pegasus is an established Django SaaS starter kit designed to integrate frontend tooling directly with Django templates rather than forcing a separate frontend repository. Its frontend architecture documentation describes a Django-integrated frontend workflow using Vite, Django templates, and compiled static assets, offering HTMX alongside React options.
If you want a server-rendered Django application, that setup keeps templates and Django views front and center while still giving modern asset bundling and HTMX interactivity. You work inside a unified Django project instead of coordinating builds across two disconnected codebases.
Application Features and SaaS Functionality
Depending on the Pegasus edition and configuration you choose, the codebase addresses core SaaS building blocks such as authentication, account management, teams and invitations, subscription billing, APIs, background tasks, and reusable UI components.
Those pieces matter because their purpose is structural rather than cosmetic. Team support and invitations become essential once your product sells to companies or shared workspaces rather than solo users, while subscription billing and plan checks connect payments to what a customer can actually use in the app.
The Open-Source Edition and Pegasus Pro
When evaluating SaaS Pegasus, it helps to separate the free open-source Pegasus repository from the commercial Pegasus Pro offering. The open-source Pegasus repository gives you a Django foundation with modern frontend tooling and development setup, whereas Pegasus Pro adds fuller SaaS features including subscriptions, teams, and multi-tenancy.
Checking the current licensing terms and feature matrix in the official documentation ensures you know whether the free codebase covers your needs or whether you need the commercial edition for multi-user organizations and recurring billing.
Development and Customization
Starting a project with Pegasus involves generating or configuring the project, choosing your frontend and feature options according to the documentation, and running the project’s setup and frontend build commands. From there, you replace example models and pages with your own domain logic.
Because Pegasus comes with structured conventions and configuration layers, reading its docs on project settings, template structure, and asset compilation early saves time before you begin adapting the codebase.
2. SpeedPy
The Application Structure
SpeedPy stands out as an open-source Django starter kit that pairs an HTMX and Alpine.js interface with Tailwind CSS and Django REST Framework. Its layout organizes the core application, custom user and team models, HTML templates, and API modules so backend views, interactive HTML partials, and REST endpoints live within a cohesive Django project.
Inspecting that layout up front helps you see how views, templates, serializers, and background tasks are wired together before you start adding product-specific apps.
Teams, Roles, and Multi-Tenancy
Many SaaS products eventually need workspaces where several teammates collaborate under one account. SpeedPy includes team-based multi-tenancy and role-related functionality in its open-source codebase, covering team membership, invitations, roles, and data scoped to a tenant or organization.
Building multi-tenancy and role checks from scratch is easy to get wrong if a query forgets to filter by organization or team. Starting with tenant-aware structure saves considerable groundwork when your target customers are teams or businesses.
APIs, Authentication, and Integrations
Alongside its server-rendered HTMX interface, SpeedPy provides REST API support, OAuth2, personal access tokens, webhooks, and API documentation. Together, those pieces let external tools or customer integrations interact with your application securely and receive event notifications when actions happen.
SpeedPy also includes an MCP server template and resources aimed at AI-assisted development workflows. That is a notable inclusion in the repository, though for most teams it sits alongside core API and auth features rather than replacing your product logic.
Billing and Background Tasks
Subscription products need payment handling that links billing state to customer accounts, plus asynchronous task processing for jobs that should not block a web request. Sending emails, processing webhooks, or handling scheduled work belongs in background tasks rather than inside a synchronous HTTP response.
Checking SpeedPy’s official documentation for its exact billing integration and worker setup will show you how subscriptions and background jobs are wired up in the version you install.
Licensing and Deployment
SpeedPy is released under the MIT license and can be deployed on your own infrastructure rather than being tied to a single hosting provider. Its documentation covers local development workflows, environment variables, and Docker-based setups, and notes that it is free and open source without a separate paid SpeedPy edition.
3. eriktaveras Django SaaS Boilerplate
What the Starter Includes
The eriktaveras Django SaaS Boilerplate takes a leaner approach than larger multi-feature starters, using Django, HTMX, Tailwind CSS, and Alpine.js. Its repository covers a custom user model, sign-up and login flows, a basic dashboard, Stripe subscription handling, a public marketing page, and deployment configuration.
Instead of bundling heavy multi-tenant scaffolding from day one, it focuses on giving you a working baseline with user accounts, navigation, and subscription plumbing already connected.
How Its Billing Implementation Works
In its Stripe integration, the repository sets up subscription flows, payment methods, subscription status tracking, and webhook handling. That gives you a starting point for recurring charges without writing raw Stripe checkout and webhook plumbing from scratch.
At the same time, processing a subscription is not the same thing as having a complete billing and entitlement system. The repository documents clear limitations around plan-based feature gating, usage limits, failed-payment recovery, customer portal workflows, and multi-tenancy, which means you should plan to build those rules yourself if your pricing model requires them.
Its Intended Use
A focused starter can be a smart fit for an MVP, a solo-user tool, or a straightforward subscription app where simplicity matters more than deep enterprise features. Choosing a smaller codebase avoids wading through abstractions you do not need yet, while trading away built-in team and billing extras that you will have to add later if your product grows.
Licensing and Development Setup
The project is MIT-licensed, giving you permissive rights to adapt and deploy the code. Following its repository setup guide covers cloning the code, configuring environment variables and Stripe keys, preparing the database, and running the app locally or with its documented deployment approach.
Other Django SaaS Projects and HTMX Foundations
PaulleDemon Django SaaS Boilerplate
The PaulleDemon Django SaaS Boilerplate is worth a look if you want an example that includes a landing page, authentication, Stripe recurring payments, a blog, and general site pages. However, the repository does not clearly establish HTMX as part of its current frontend stack, so treat it as a candidate to inspect directly by checking its templates and dependencies before assuming it uses HTMX.
Cookiecutter Django
Cookiecutter Django is a widely used project template rather than a turn-key SaaS starter kit. It gives you a clean, structured Django project layout, settings split, and tooling, without supplying prebuilt SaaS features like subscription billing, teams, or multi-tenancy. It fits best when you want a solid Django scaffold and prefer to assemble your own SaaS features.
Smaller Django and HTMX Templates
Lightweight Django and HTMX templates, including DjangoX-style HTMX setups, can help you get HTMX interactions and template conventions running quickly. They usually stop short of SaaS concerns such as recurring subscriptions, tenant isolation, or team permissions, making them closer to HTMX starting points than full SaaS boilerplates.
Building a SaaS Application From One of These Starter Kits
Setting Up the Development Environment
No matter which starter kit you pick, getting a local environment running starts with standard prerequisites like Python and a compatible Django version, Git, a virtual environment or package manager, a database such as PostgreSQL or SQLite, and environment variables. Depending on the kit, you may also need Node.js for asset or Tailwind CSS builds and Docker for containerized services.
Exact commands vary from one repository to the next, so check the chosen starter’s own setup instructions, such as SpeedPy‘s documentation, rather than guessing install steps.
Running the Application Locally
Once dependencies and environment variables are in place, the usual local workflow is configuring the database, running Django migrations, creating an admin or test user, and starting the development server. For example, in a typical Django and Tailwind starter workflow, you run python manage.py migrate, create a superuser with python manage.py createsuperuser, and start python manage.py runserver in one terminal while running your CSS or Vite watcher in another so style and asset changes compile while you work.
Replacing the Demo With Your Own Product
A starter kit’s sample screens and demo data are only placeholders. Moving toward a real product means clearing out demo pages, writing your own Django models, building core views and workflows, adjusting dashboard navigation, wiring up transactional email and payment keys, swapping in real pricing tiers, and updating branding and site settings.
Spend time reading how existing views, forms, and HTMX endpoints are organized before refactoring large pieces so you stay consistent with the project’s patterns.
Adding Features the Starter Does Not Provide
Every starter leaves gaps that depend on your business model. You may need to implement plan-based feature access, usage quotas or rate limits, organization-scoped permissions, dunning or failed-payment handling, account cancellation and deletion, data export, or extra API endpoints. Treat those items as product-driven additions based on what your customers actually need, rather than a mandatory checklist for every app.
Preparing the Application for Production
Security and Configuration
Moving to production requires locking down secrets, debug flags, and network settings. Make sure production secrets are stored outside source control, DEBUG is disabled, HTTPS and secure cookie flags are enabled, ALLOWED_HOSTS is properly restricted, and database and email credentials use production values rather than local defaults.
Payments and Subscription Access
Launching paid plans takes more than a working checkout button. You need live payment credentials, verified webhook handling, end-to-end testing of upgrades, downgrades, renewals, and cancellations, and strict checks in your Django views so access reflects a customer’s real subscription status and payment health.
Database, Static Files, and Background Jobs
A production deployment needs reliable database backups, proper serving or object storage for static and user-uploaded files, and durable background workers plus scheduled tasks. What runs fine in a single local terminal session needs process supervision, retries, and monitoring once real users depend on it.
Testing and Maintenance
Run the existing test suite and write tests for your new models, permissions, billing webhooks, and HTMX views as you customize the app. Keep track of Django and dependency updates over time, especially with open-source or community starter kits where ongoing security patches and upgrades may fall largely on your team.
Choosing a Foundation for Your SaaS Project
The right starting point depends on what your product actually requires today and what you want to build yourself.
- SaaS Pegasus makes sense if you want an established, configurable Django SaaS foundation and are weighing commercial SaaS features like teams, subscriptions, and multi-tenancy.
- SpeedPy is worth a close look when you want an open-source HTMX and Django codebase that already includes team-based multi-tenancy, REST API and OAuth2 support, and MIT licensing.
- eriktaveras Django SaaS Boilerplate fits smaller or earlier-stage subscription apps that want a lighter Django, HTMX, Tailwind CSS, Alpine.js, and Stripe starting point without heavy multi-tenant complexity.
- Cookiecutter Django or a minimal Django and HTMX template works best when you want clean project scaffolding and prefer to design your own SaaS architecture from scratch.
Conclusion
Starter kits earn their keep by saving you from rebuilding routine Django and SaaS scaffolding so you can spend your energy on your actual product. Django and HTMX offer a straightforward, server-centric way to build interactive web apps, yet each codebase draws a different line between prebuilt features and custom code.
Pick the foundation that matches your product’s real scope and your team’s maintenance appetite, without adding bloated features you do not need or leaving essential billing and security logic half-finished.
