Note : This article focus on only basic things

Django Tenants Django Tenant is a technique and package used to build multi-tenant applications in Django, allowing multiple customers (tenants) to use the same Django project while keeping their data isolated from each other.

Multi-Tenant Application

 A multi-tenant application is a single software application that serves multiple customers (tenants), keeping their data and configurations separate while using the same codebase and infrastructure.

0_monZphegehgmX1bD.png

Why multi -tenant ??

A multi-tenant architecture allows a single application to serve multiple customers (tenants) efficiently while keeping their data and configurations isolated, enabling easier maintenance, lower costs, and centralized updates. It allows all tenants to share the same infrastructure and core codebase while ensuring that each tenant’s data remains secure and invisible to others, making it ideal for SaaS applications that need to scale easily and deliver personalized experiences to each customer without duplicating efforts across deployments

Schema (Database Schema) A schema is a logical container inside a database that groups related tables and objects together, helping organize and isolate data.

Types of multi-tenant modeling

1.ISOLATED TENANTS Isolated Database( database segregation):

         In the Isolated Tenant model, each tenant has its own completely separate database. This means all of their data  users, roles, settings, transactions is stored in a database that no other tenant can access. 

So in brief what we have to understand is one user or have one data base

Isolated Tenant = One Tenant → One Database

Let's discuss how it works.