Revision bb762ce4
Added by Thomas Noël almost 10 years ago
entrouvert/djommon/multitenant/template_loader.py | ||
---|---|---|
89 | 89 |
raise ImproperlyConfigured('To use %s.%s you must define the TENANT_TEMPLATE_DIRS' % (__name__, FilesystemLoader.__name__)) |
90 | 90 |
for template_dir in template_dirs: |
91 | 91 |
try: |
92 |
yield safe_join(template_dir, connection.tenant.schema_name, 'templates', template_name)
|
|
92 |
yield safe_join(template_dir, connection.tenant.domain_url, 'templates', template_name)
|
|
93 | 93 |
except UnicodeDecodeError: |
94 | 94 |
# The template dir name was a bytestring that wasn't valid UTF-8. |
95 | 95 |
raise |
Also available in: Unified diff
tenants in TENANT_BASE/hostname (#6398)