Closed xeroticikot closed 1 year ago
hi @xeroticikot,
the docu is not good at this point. Sorry for that. I will update it with my next iteration. For the meantime, you can try this:
SHARED_APPS = (
'wagtail_tenants.customers',
'wagtail_tenants',
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.embeds",
"wagtail.sites",
"wagtail.users",
"wagtail.snippets",
"wagtail.documents",
"wagtail.images",
"wagtail.search",
"wagtail.admin",
"wagtail_tenants.users",
"wagtail",
"modelcluster",
"taggit",
"django.contrib.staticfiles",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"wagtail.api.v2",
"rest_framework",
)
TENANT_APPS = (
'wagtail_tenants',
"wagtail.contrib.forms",
"wagtail.contrib.redirects",
"wagtail.embeds",
"wagtail.sites",
"wagtail.users",
"wagtail.snippets",
"wagtail.documents",
"wagtail.images",
"wagtail.search",
"wagtail.admin",
"wagtail_tenants.users",
"wagtail",
"modelcluster",
"taggit",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
)
I use it that way and it will work. I stumbled upon a case where some issues occur within the Object/Model/Snippet Reference Index.
If you have all Wagtail Apps in the TENANT_APPS, it will try to create a reference in the public schema (because of signals), which will give you a “Table not found for ContentTypes”.The Solution: You have to set
wagtail_reference_index_ignore = True
on your Tenant and Domain Model, and every other Model in your SHARED_APPS.
as far as you don't plan to use the snippets feature it will be no problem for you. I still need some time to provide a signal-flow within the tenant to not go to the public schema
Below is my apps settings -
Below is the traceback from running "migrate_schemas --shared" command -