SaaS for Enterprise with Django & Neon Postgres. Data Isolation. Multi-Tenancy. Advanced Tutorial.

SaaS for Enterprise with Django & Neon Postgres. Data Isolation. Multi-Tenancy. Advanced Tutorial.

⭐️ Sign up for Neon right now! https://saasgorillas.com/db

πŸ’½ Open Source Code: https://saasgorillas.com/code/ (on GitHub)
❓Need help? Use the discussions tab at https://saasgorillas.com/discussions

Topics:
βœ… Advanced Python web development with Django
βœ… Data isolation for Enterprise
βœ… Single Django codebase with multi-tenant architecture
βœ… Enterprise-only users isolated from standard Django users (and the standard Django admin)
βœ… Dedicated Enterprise logins with dedicated subdomains
βœ… What, when, and why of multi-tenant apps (e.g. SaaS apps that need to keep enterprise data isolated)
βœ… Custom middleware for tenant checking and schema activation
βœ… Levels of helping enterprise customers (e.g. when not to use multi-tenant)
βœ… Implementing a multi-tenant in Django with no third-party dependancies (aside from postgres)
βœ… Learn how to adapt Django to add multi-tenant as needed
βœ… User data isolation via Postgres Schemas and Neon Databases
βœ… Custom migrations for Django models; for standard Django and Enterprise customers
βœ… Django-hosts for subdomain routing and handling
βœ… Django Management commands to migrating specific apps for Enterprise Customers vs Regular Django Project
βœ… Managing non-public Postgres schemas inline a Public schemas
βœ… Using Neon Branching for point-in-time pre-migration backups
βœ… Using Neon API to automate branching and branch clean up
βœ… and much more

‼️ Before you start ‼️
I recommend you know some of the following:
β—¦ Python
β€’β€’β€’ Such as classes, functions, variables, math operations, installing, setting up virtual environments
β€’β€’β€’ If you’re new to Python, watch up to day 15 of 30 Days of Python: https://saasgorillas.com/python1
β—¦ Django basics
β€’β€’β€’ Such as views, URL routing, models and migrations, users and auth login
β€’β€’β€’ If new to Django, watch Your First Django Project (https://saasgorillas.com/django1)(paid) or Try Django 3.2 (https://saasgorillas.com/django2)(free)
β€’β€’β€’ SaaS fundamentals with Django (recommended): https://www.youtube.com/watch?v=WbNNESIxJnY
β€’β€’β€’ Review the SaaS starter code. Open source version at https://github.com/codingforentrepreneurs/SaaS-Foundations or the managed version on https://cfe.run

⭐️ Thank you to Neon for sponsoring this course – sign up at https://saasgorillas.com/db

πŸš€ Enroll now on https://cfe.sh/enroll πŸš€

πŸ“½οΈ Chapters
00:00:00 Welcome
00:08:12 The 3 levels of Enterprise in Django
00:15:54 Implement the SaaS Starter Code
00:27:58 Locking Versions with Pip Tools
00:34:19 Setup Serverless Postgres with Neon
00:40:01 Create a new Database Schema
00:44:57 Simple Migrations for Custom Schemas
00:51:56 Multi-Tenant Migrating with Neon Branching
01:02:34 Customer-only Installed Apps & Database Migrations
01:12:20 Advanced Customer Schema Database Migrations
01:16:19 Using Subdomains in Development with Django
01:19:12 Custom Schema Middleware Activation Part 1
01:26:25 Custom Schema Middleware Activation Part 2
01:35:36 Model for Subdomains and DB Schemas
01:45:21 Auto Generate Schema Names
01:52:56 Validate Tenant Subdomains
01:58:51 Migrate Schemas from Public DB Schema
02:04:48 Challenges with using Public Schema Lookups
02:09:44 Use Public Database Schema Anytime
02:16:26 Schema Activation and Exists Functions
02:23:44 Current Active Schema on Database Connection
02:28:38 Caching Schema Lookups with Django & Redis
02:37:13 Multi-Tenant User Registration
02:44:41 Storing Multi-Tenant User Data
02:50:31 Tenant Post Save Migrate Schemas
02:58:53 Tenant Migration Tasks with Celery Support
03:08:16 Tenant List and Detail
03:13:04 Display Tenant Users in Public Schema Django View
03:20:38 Register Enterprise-only User in Public Django Schema
03:27:49 Handle Valid and Invalid Subdomains
03:36:02 Django Hosts for Enterprise URL Routing
03:49:58 Automated Neon Branching
04:00:18 Dynamic Database Per Enterprise Migrations
04:08:18 Creating & Accessing Dynamic Database Data
04:18:43 Thank you

https://www.youtube.com/watch?v=4h4R7JL-h10

#financialfreedomllc #businesstips #business #entrepreneur #businessowner #entrepreneurship #marketing #smallbusiness #businesscoach #digitalmarketing #success #entrepreneurlife #motivation #businessideas #businessgrowth #businesswoman #businessman #businessquotes #businessowners #businessstrategy #startup #businesslife #businessmindset #businessminded #entrepreneurs #businessadvice #entrepreneurmindset #marketingtips #onlinebusiness #branding

Scroll to Top