-
Notifications
You must be signed in to change notification settings - Fork 425
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
FilesystemLoader object has no attribute 'get_contents' #579
Comments
I have made an attempt to fix this over at the django-tenants project: see django-tenants/django-tenants#198. You might be able to re-use parts of that to create a pull request for this project as well. |
Having the same issue wen trying to use 'per tenant templates' |
|
Here's a PR with code brought from As a side question: porting to django-tenants seems the step to go as dts looks abandoned but had no time yet to check on needed changes. @goodtune @bernardopires thoughts on this? D-t-s should officially step aside in favor of d-t? |
No need to step aside, users already have freedom of choice. |
Sure thing. Cheers to that. That being said, if project is not on development nor maintenance any more, a note with link to |
Hi, I'm using Django 2.1.2 and I have problems with the 'Specializing templates based on tenants' feature.
When I add the
tenant_schemas.template_loaders.FilesystemLoader
loader I receive this error:'FilesystemLoader' object has no attribute 'get_contents'
It seems that in the newest django versions loader mechanism is changed a little (or I'm doing something wrong?).
That's my template configuration:
The text was updated successfully, but these errors were encountered: