Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

root / entrouvert / djommon / multitenant @ aae80ef0

Name Size Revision Age Author Comment
  management e62d56fc about 11 years Benjamin Dauvergne multitenenant extension
README 1.54 KB 1d6a0108 almost 11 years Serghei Mihai readme updated
__init__.py 0 Bytes e62d56fc about 11 years Benjamin Dauvergne multitenenant extension
middleware.py 6.82 KB aae80ef0 over 10 years Benjamin Dauvergne New TenantMiddleware which try to find tenants ...
models.py 1.58 KB fd48a58c about 11 years Thomas Noël multitenant: little fixes in models.py
template_loader.py 4.9 KB 392340cf over 10 years Benjamin Dauvergne In FileSystemLoader use the schema name instead...
tests.py 383 Bytes e62d56fc about 11 years Benjamin Dauvergne multitenenant extension
views.py 26 Bytes e62d56fc about 11 years Benjamin Dauvergne multitenenant extension

Latest revisions

# Date Author Comment
aae80ef0 12 September 2014 12:02 PM 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 September 2014 12:02 PM 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 September 2014 12:02 PM 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 September 2014 12:02 PM Benjamin Dauvergne

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

refs #5106

e4332b43 12 September 2014 12:02 PM Benjamin Dauvergne

Remove dead import on tenant_schemas.utils

refs #5106

1d6a0108 23 April 2014 09:50 AM Serghei Mihai

readme updated

fd48a58c 16 March 2014 04:47 PM Thomas Noël

multitenant: little fixes in models.py

c59fb59b 04 February 2014 03:23 PM Benjamin Dauvergne

multitenant: fix instructions on the settings in the README

e62d56fc 04 February 2014 03:14 PM Benjamin Dauvergne

multitenenant extension

View revisions

Also available in: Atom