Brad Rhoads
Brad Rhoads

Reputation: 1846

How To Implement A SAAS App In Django Without Using Subdomains

This article makes a good argument for avoiding subdomains in a SAAS app. All of the SAAS solutions I've found for Django so far all use subdomains.

Is there a reliable way to implement a multi-tenant app in Django that doesn't use subdomains?

Upvotes: 0

Views: 544

Answers (1)

jonzlin95
jonzlin95

Reputation: 280

Just build a middleware that sets the tenant and modifies the Request object, based on the URL, and wildcard your URL confs to handle it. Should work fine.

Upvotes: 2

Related Questions