Project

General

Profile

« Previous | Next » 

Revision bb762ce4

Added by Thomas Noël almost 10 years ago

tenants in TENANT_BASE/hostname (#6398)

View differences:

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:

Also available in: Unified diff