borisbrue / wagtail-tenants

wagtail_tenants is a Django/Wagtail app to provide multitenancy to your wagtail project.
24 stars 8 forks source link

Multi-site per tenant should be set by the tenants' superadmins, not by developers #1

Open hazho opened 2 years ago

hazho commented 2 years ago

currently, tenant superuser can create another site for themselves, but the tenant middleware is preventing them from visiting it, because there is no tenant-record for the newly created site domain, even if it is a sub-domain..! it would be great if we automate the tenant-record registering for the multi-sites per tenant/ without the need to create a new schema..!

borisbrue commented 2 years ago

Hi @hazho thanks for your input! I dont know if this is possible with the underlying approach. But feel free to provide something we can use.

I did not ran into the issue because i used TLDs for the hostnames and wagtail as a headless_cms. internally all route to an personalized wagtail router which checks the hostname and provides the correct site data. I could share the code if thats something you would like to try

hazho commented 2 years ago

I was worriyng the same, please share what related, it may help me and others