Using DRF and django-tenants together in the same project

I’m currently building a multi tenancy app with django-tenants.

However I also want to run my REST API in the same project as django-tenants.

This is where the problem arises, if I were to make my API a shared tenants app every tenant subdomain ends up having their own API.

For example, all registered tenants adopt the API routes as part of their subdomain:,, etc.

I don’t want my API to be underneath each tenant, I want to just run it on one domain, preferably

Does anyone have any advice on how to set this up? How are other people handling this in their projects?

Leave a Comment