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/storage.py
14 14
    '''Lookup files first in $TENANT_BASE/<tenant.schema>/media/ then in default location'''
15 15
    def path(self, name):
16 16
        if connection.tenant:
17
            location = safe_join(settings.TENANT_BASE, connection.tenant.schema_name, 'media')
17
            location = safe_join(settings.TENANT_BASE, connection.tenant.domain_url, 'media')
18 18
        else:
19 19
            location = self.location
20 20
        try:

Formats disponibles : Unified diff