Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use django-cachalot with django-tenants #172

Closed
nitinnain opened this issue Mar 18, 2021 · 2 comments
Closed

Unable to use django-cachalot with django-tenants #172

nitinnain opened this issue Mar 18, 2021 · 2 comments

Comments

@nitinnain
Copy link

nitinnain commented Mar 18, 2021

Trying to setup django-cachalot on a django-tenants project and it reports this right at the start:

(cachalot.W003) Database engine 'django_tenants.postgresql_backend' is not supported by django-cachalot.
HINT: Switch to a supported database engine.

Any tips on fixing this?

@nitinnain nitinnain changed the title Unable to use django-cachealot with django-tenants Unable to use django-cachalot with django-tenants Mar 18, 2021
@jcass77
Copy link

jcass77 commented Mar 18, 2021

Have a look at #123. It hasn't been rebased on the main branch for a while but should give you a fair idea.

The trick is to have cachalot generate a unique cache key for each tenant (see get_multi_tenant_table_cache_key for details).

@nitinnain
Copy link
Author

nitinnain commented Mar 18, 2021

Thanks John! Marking this as duplicate of #123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants