Projet

Général

Profil

« Précédent | Suivant » 

Révision bb762ce4

Ajouté par Thomas Noël il y a environ 9 ans

tenants in TENANT_BASE/hostname (#6398)

Voir les différences:

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

Formats disponibles : Unified diff