Open jbltx opened 6 years ago
Ok i found the issue, Django doesn't use MIDDLEWARE_CLASSES but MIDDLEWARE property in settings now. I just inserted 'tenant_schemas.middleware.TenantMiddleware'
as first element of my MIDDLEWARE list and the good urls configuration file is used (should be nice to see a message in the documentation to warn us ;) ).
I'm still having difficulties with this. How did you setup the urls_public
to ensure it worked? Thanks
I'm currently testing your nice library, I have already made all the setup written in the doc and everything has worked as expected.
I added
PUBLIC_SCHEMA_URLCONF
to be able to separate routing between the main domain url and other tenants ones, and it seems to not work. Myurls_public.py
urlpatterns is an empty list, but when i go tohttp://localhost:8000
the Django debugger is showing me a 404 error with the message:Which is an error from the other urls configuration file.
Here is my settings: