Projet

Général

Profil

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

root / entrouvert / djommon / multitenant @ b7f756de

Nom Taille Révision Âge Auteur Commentaire
  management fbed23e8 plus de 9 ans Benjamin Dauvergne Add command list_tenants (fixes #5044) refs #5106
README 1,54 ko 1d6a0108 environ 10 ans Serghei Mihai (congés, retour 15/05) readme updated
__init__.py 0 octets e62d56fc environ 10 ans Benjamin Dauvergne multitenenant extension
middleware.py 6,82 ko aae80ef0 plus de 9 ans Benjamin Dauvergne New TenantMiddleware which try to find tenants ...
models.py 292 octets e8304bf1 plus de 9 ans Benjamin Dauvergne Make tenant model non savable refs #5106
template_loader.py 4,9 ko 392340cf plus de 9 ans Benjamin Dauvergne In FileSystemLoader use the schema name instead...
tests.py 3,35 ko b7f756de plus de 9 ans Benjamin Dauvergne Add tests on multitenants features (fixes #5106)
views.py 26 octets e62d56fc environ 10 ans Benjamin Dauvergne multitenenant extension

Dernières révisions

# Date Auteur Commentaire
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

Voir les révisions

Formats disponibles : Atom