Projet

Général

Profil

Télécharger (6,83 ko) Statistiques
| Branche: | Tag: | Révision:

root / entrouvert / djommon / multitenant / middleware.py @ 1b18c2d9

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

middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware

Closes #5972

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

e62d56fc 04 février 2014 15:14 Benjamin Dauvergne

multitenenant extension