Academy Omen
  • Tutorials
  • About

Academy Omen

Join us on a quest for excellence with our world-class tutorials. Elevate your software engineering skills and open new doors of opportunity.

About

GitHubX (Fomerly Twitter)Youtube Channel

Company

HomeAboutContact

Contact

+012 XXXXXXXXX

peng@traleor.com

Powered By Traleor CMS (& Wagtail)

How to Build a Software as a Service with Django

Date Published: 2021-07-05

build-a-saas
HomeTutorials
Peng

Peng Akebuon

Tutorial Summary

⭐ In this series, we will build a Software as a Service ( Saas ). We first go through the definition of terms and talk about the relation between a Saas software and Multitenancy. Finally, we talk about the different approaches to solving multitenancy.

Materials/References

📚 Source Code
🔗 Django Tenant Docs

Part 1: What is a Saas and Multi-tenancy

Part 2: Build a Saas with django-tenant

# Middleware and Database Setup
MIDDLEWARE = [
    # add this at the top
    # django tenant middleware
    'django_tenants.middleware.main.TenantMainMiddleware',

    #........
]


# Setup Postgres database in settings.py
DATABASES = {
    'default': {
        # Tenant Engine
        'ENGINE': 'django_tenants.postgresql_backend',
        # set database name
        'NAME': 'saasy',
        # set your user details
        'USER': 'admin',
        'PASSWORD': 'password',
        'HOST': 'localhost',
        'POST': '5432'
    }
}

# DATABASE ROUTER
DATABASE_ROUTERS = (
    'django_tenants.routers.TenantSyncRouter',
)

Let's Connect

🔗 LinkedIn
🔗 Twitter
🔗 Join Our Discord Server

🔗 Academy Omen: GitHub

djangopythonsaas

Related Tutorials

How to Build a Blog with Powerful Rich-text Editor | Django  Step by Step Tutorial

How to Build a Blog with Powerful Rich-text Editor | Django Step by Step Tutorial

Beginner

2021-04-24

In this tutorial series, we build a blog with Django that has a Powerful Rich-text Edit...

How to Build a Software as a Service with Django

How to Build a Software as a Service with Django

Intermediate

2021-07-05

A comprehensive, step-by-step guide aimed at beginners, covering the creation of a Soft...

How to Host a Django Website for FREE - Beginner's Step by Step Tutorial

How to Host a Django Website for FREE - Beginner's Step by Step Tutorial

Beginner

2021-04-12

A Beginner's step-by-step guide showing you how to deploy or host your Django websites ...