Questions tagged [django-tenants]
37 questions
0
votes
1 answer
Using Django Tenants with Channels - AppRegistryNotReady
We are trying to use django channels to implement websockets in a multi-tenant django application.
I have followed the tutorial page in the django channels documentation and also applied the instructions found in the deploying page. However, I am…

arkjan
- 1
0
votes
0 answers
relation does not exist while testing django tenant
I would like to use Selenium for my test.
But when I try to connect to my tenant and then create a basic django User, I got the relation does not exist error.
I suppose that because I'm in a test, the migrations to my tenant are not made but I can't…

Pollo9
- 13
- 3
0
votes
2 answers
django-tenants basics: SHARED_APPS vs TENANT_APPS
I am using django-tenants for a multi-tenant app.
In the docs it talks about setting up SHARED_APPS and TENANT_APPS.
SHARED_APPS is a tuple of strings just like INSTALLED_APPS and should
contain all apps that you want to be synced to public
If I…

alias51
- 8,178
- 22
- 94
- 166
0
votes
1 answer
Change schema on views using Django Tenants
I'm using Django Tenants on my project and I'm creating a schema for each Tenant.
I have 'django.contrib.auth' and 'django.contrib.contenttypes' both in SHARED_APPS and in TENANT_APPS, and now I want to create specific groups in each tenant…

Pedro Silva
- 113
- 7
0
votes
1 answer
django-tenants global device table mapping to tenants
We are using django-tenants to provide a multi tenant solution for an iot platform and I'm having an issue figuring out how to map some global data to tenant specific tables. Basically we have iot devices that talk to a node.js server using a…

mihnen
- 1
0
votes
1 answer
Django/Python: post_save signal - expected string or bytes-like object
I have a post_save signal which is failing with 'expected string or bytes-like object'. I am not sure why, it is being caused by the call to create_user below:-
This is to create a user within a tenant schema for a newly created…

Jon
- 121
- 5
0
votes
1 answer
How can I get Django Rest Framework to work with Django Tenants and React?
Here is my setup:
settings.py
SHARED_APPS = (
'django_tenants',
'main',
other apps...
)
TENANT_APPS = (
'rest_framework',
'company',
)
MIDDLEWARE = [
'django_tenants.middleware.main.TenantMainMiddleware',
other…

Dallas Caley
- 5,367
- 6
- 40
- 69