-
Notifications
You must be signed in to change notification settings - Fork 67
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
Struggling with order of operations between django-tenants and django-tenant-users #690
Comments
Hi Andy,
Everything until running the
At the order called out in the docs.
Yes. Looks like there's a typo there. Go off the code sample, not the docs :D You can also see the provision_tenant() function for more info. Extra ThoughtsWhat I think is happening is you're setting up User ModelSince you are starting fresh, one thing I would recommend doing is not using Hope this helps. If not, let me know! |
Brilliant! Thank you for coming back to me so quickly. The steps I followed:
NOTE FOR OTHERS: create_public_tenant does create a new user unlike provision_tenant I'm now able to get things up and running including the public admin site access. I do have one more issue though: I can't log in to the admin sites of the subdomain tenants. I have their admin site defined as a new url under the tenant apps, I can get to the login screen but it never lets me log in (saying the details are wrong). I added this new tenant through the public admin site and made the owner the same as the one above. What I'm expecting is to be able to add a tenant via the public admin site then be able to log in to the tenant admin via the tenant_admin url. Is there anything special I'm missing or misunderstanding? I'd rather not command dive in Prod if I don't have to. Big thanks, again, for getting me un-stuck! |
Sounds like great PRs ;)
Are you setting the permissions? Keep in the mind the whole point of this app is to have tenant-specific permissions with a global User account. When creating a tenant with
Sure thing! |
Hi folks,
I'm hoping to get some guidance on how to get tenants and users running correctly.
What I've done:
Issues I keep bumping up against:
I am mega keen to use this setup as it promises to be everything I need in my SaaS application but I've spent days chasing my tail and second guessing myself.
Could someone do me a massive favour and spell out how they got this stuff setup, please?
If someone spells the config and steps out I will write the readme and PR it in as it looks like lots of others are also struggling with the current getting started info.
Thanks in advance,
Andy
The text was updated successfully, but these errors were encountered: