Projet

Général

Profil

Statistiques
| Branche: | Tag: | Révision:

root / entrouvert / djommon / multitenant @ 1b18c2d9

# Date Auteur Commentaire
1b18c2d9 20 novembre 2014 10:08 Jérôme Schneider

middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware

Closes #5972

cd1fa561 24 octobre 2014 16:36 Thomas Noël

add safemigrate_schemas command (#5791)

3a139634 24 octobre 2014 16:06 Thomas Noël

sync_schemas: notice syncdb before doing it (fix)

7e82bd8e 17 octobre 2014 18:08 Jérôme Schneider

multitenant: add a command to create tenant(s) by hostname

Closes #5759

ce71993c 18 septembre 2014 14:26 Benjamin Dauvergne

In management commands of multitenant app rename variable schema_name as domain

c370a248 15 septembre 2014 09:25 Benjamin Dauvergne

Add tenant based storage handler (fixes #5501)

To use it, add this to your settings.py:

DEFAULT_FILE_STORAGE = 'entrouvert.djommon.multitenant.storage.TenantFileSystemStorage'
b7f756de 12 septembre 2014 12:02 Benjamin Dauvergne

Add tests on multitenants features (fixes #5106)

fbed23e8 12 septembre 2014 12:02 Benjamin Dauvergne

Add command list_tenants (fixes #5044)

refs #5106

5c1d1ad6 12 septembre 2014 12:02 Benjamin Dauvergne

Add command get_tenant_by_domain

refs #5106

3afe385b 12 septembre 2014 12:02 Benjamin Dauvergne

Add command to create missing tenant schemas

refs #5106

ccec1ff4 12 septembre 2014 12:02 Benjamin Dauvergne

Import django-tenant-schemas commands to adapt them to our way of managing tenants

refs #5106

e8304bf1 12 septembre 2014 12:02 Benjamin Dauvergne

Make tenant model non savable

refs #5106

4cea64a7 12 septembre 2014 12:02 Benjamin Dauvergne

Remove create-tenant command

refs #5106

aae80ef0 12 septembre 2014 12:02 Benjamin Dauvergne

New TenantMiddleware which try to find tenants based on the filesystem

If path <settings.TENANT_BASE>/<hostname>/schema exists, read this file an build
tenant modle with Tenant(domain_url=<hostname>, schema_name=file(<path>).read()).

refs #5106

ec0613c1 12 septembre 2014 12:02 Benjamin Dauvergne

Add middleware to load settings from a JSON file based on the tenant

  • Loaded settings are cached based on the mtime of the setting file
  • JSON file path is <settings.TENANT_BASE>/<schema_name>/settings.json

refs #5106

392340cf 12 septembre 2014 12:02 Benjamin Dauvergne

In FileSystemLoader use the schema name instead of the domain name for building template path

Also add a templates/ suffix.

refs #5106

73b85f5d 12 septembre 2014 12:02 Benjamin Dauvergne

In FileSystemLoader rename settings from MULTITENANT_TEMPLATE_DIRS to TENANT_TEMPLATE_DIRS to unformize with other settings

refs #5106

e4332b43 12 septembre 2014 12:02 Benjamin Dauvergne

Remove dead import on tenant_schemas.utils

refs #5106

1d6a0108 23 avril 2014 09:50 Serghei Mihai (congés, retour 15/05)

readme updated

fd48a58c 16 mars 2014 16:47 Thomas Noël

multitenant: little fixes in models.py

c59fb59b 04 février 2014 15:23 Benjamin Dauvergne

multitenant: fix instructions on the settings in the README

e62d56fc 04 février 2014 15:14 Benjamin Dauvergne

multitenenant extension