๐Ÿ—๏ธ
๐Ÿ—๏ธ Build a SaaS with Larz ยท LARZ-601 ยท Session 4 of 6

Admin Panel & Revenue Dashboard

You need to see and manage what's happening - your data and your money. Larz auto-generates a CRUD admin panel over your models and a revenue dashboard, so you're not building internal tools by hand.

โฑ 8 min read๐Ÿ“… Updated 2026-07-27๐Ÿ“Š Tables, charts & examples

Running a SaaS means you need to see and manage things: your users and data, and how much money is coming in. Building internal admin tools by hand is a time-sink most solo builders skip - and regret. Larz auto-generates a CRUD admin panel over your models and includes a revenue dashboard, so you get the tools to actually run the business for free.

An admin panel over your models

Define your data as Larz models, enable admin, and you get a full create/read/update/delete interface over them - no admin UI to build.

from larz.models import Model, Field
import larz.admin as admin

class Project(Model):
    name = Field.string()
    owner = Field.foreign_key('User')

admin.enable(app)   # auto CRUD admin over your models at /larz/admin
You get, generatedWithout
List / create / edit / delete recordsBuilding any of it by hand
Forms from your model fieldsWriting forms and validation
Relationships handledManual join UIs
A place to run the businessPoking the database directly

The admin panel is generated from your models, so it stays in sync as your data evolves - internal tooling you'd otherwise never get around to building.

See the money

Because payments are built in, Larz can show you the numbers that matter - subscriptions, revenue, entitlements - in a dashboard.

๐ŸŽฏ
Your money, visible. The revenue dashboard surfaces what a SaaS owner actually needs to watch - active subscriptions, revenue, trials, entitlement events - because the framework already tracks all of it. You don't wire up analytics or reconcile a payment provider's dashboard with your own data; it's one view, generated from the money layer. Add charts with larzchart (the larz[full] extra) for richer visuals.

Run the business

  • Model your data - Field types, relationships, migrations.
  • Enable admin - auto CRUD panel over your models at /larz/admin.
  • Watch revenue - the built-in dashboard from the money layer.
  • Gate it - protect admin with @require_role('admin').

๐ŸŽฏ Key takeaways

  • Running a SaaS needs internal tools - Larz auto-generates a CRUD admin panel over your models.
  • Define data as Larz models and enable admin; the panel stays in sync as your data evolves.
  • A built-in revenue dashboard surfaces subscriptions, revenue and entitlements from the money layer.
  • Protect admin with @require_role('admin'); add richer charts with larzchart (larz[full]).

Frequently asked

How is an auto-generated admin panel different from building my own?

It's generated from your model definitions, so you get a working create/read/update/delete interface - with forms, validation and relationship handling - the moment you define your data and enable admin, and it updates automatically as your models change. Building your own means writing and maintaining all those forms, list views and permissions by hand, which is exactly the internal tooling solo builders tend to skip and then regret when they're poking the raw database to fix things. The auto-panel gives you a safe, convenient place to manage your app's data from day one, essentially for free.

Can customers see the admin panel or dashboard?

Only if you let them - and you shouldn't. The admin panel and revenue dashboard are internal tools, so you gate them behind authentication and an admin role (@require_role('admin')), typically at an internal path like /larz/admin. Regular users get their own dashboard (their data, their subscription), which is a different, customer-facing view you build with normal routes. Larz's role-based access makes it straightforward to keep the powerful internal tools restricted to you and your team while giving customers an appropriate, limited view of their own account.

Session 4 of 6 complete

Next up: Background Jobs, Email & Ops

Continue to Session 5 โ†’

Related lessons

More in this course

Course home → · Browse all courses →