Revision bb762ce4
Added by Thomas Noël almost 10 years ago
entrouvert/djommon/multitenant/management/commands/deploy.py | ||
---|---|---|
22 | 22 |
|
23 | 23 |
call_command('create_tenant', hostname) |
24 | 24 |
|
25 |
tenant_name = TenantMiddleware.hostname2schema(hostname) |
|
26 |
tenant = TenantMiddleware.get_tenant_by_hostname(tenant_name) |
|
25 |
tenant = TenantMiddleware.get_tenant_by_hostname(hostname) |
|
27 | 26 |
with tenant_context(tenant): |
28 | 27 |
self.deploy_tenant(environment, service, options) |
29 | 28 |
|
Also available in: Unified diff
tenants in TENANT_BASE/hostname (#6398)