bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.46k stars 424 forks source link

Django 1.9+ Support for template_loader (fix for #456) #457

Closed uadnan closed 7 years ago

uadnan commented 7 years ago

Added CachedLoader support for Django 1.9 and higher to resolve #456

Starting from Django 1.8 new TEMPLATES config was introduced depreciating old TEMPLATE_* settings. I've updated that within test project settings.

Starting from Django 1.9, There is no longer make_origin method on TemplateEngine.

uadnan commented 7 years ago

Thanks @goodtune

I've added necessary Unit tests. Also bit explained my changes in PR description