Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

root / entrouvert / djommon @ e8304bf1

Name Size Revision Age Author Comment
  email_backends a1790511 about 11 years Benjamin Dauvergne add a sinkhole email backend It makes all mail...
  humantime ab06cb99 almost 11 years Benjamin Dauvergne humantime: convert datetime to current timezone...
  locale b37a6fc5 over 11 years Benjamin Dauvergne eohumanize: template tags for eo applications
  multitenant e8304bf1 about 10 years Benjamin Dauvergne Make tenant model non savable refs #5106
  serializers 6ec2e241 over 10 years Benjamin Dauvergne djommon/serializers/json: fix missing import an...
  templatetags 7aa873d2 over 11 years Frédéric Péters trivial: do not use an intermediary variable fo...
__init__.py 0 Bytes 6c835b8f over 11 years Benjamin Dauvergne start a djommon django application
middleware.py 2.47 KB 698c4ef1 over 10 years Jérôme Schneider middleware: match url /__version__ *or* /__vers...
models.py 0 Bytes 6c835b8f over 11 years Benjamin Dauvergne start a djommon django application
urlconf.py 1.15 KB cffad1de over 11 years Benjamin Dauvergne djommon: add decorated_include utility extracte...

Latest revisions

# Date Author Comment
e8304bf1 12 September 2014 12:02 PM Benjamin Dauvergne

Make tenant model non savable

refs #5106

4cea64a7 12 September 2014 12:02 PM Benjamin Dauvergne

Remove create-tenant command

refs #5106

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

698c4ef1 24 June 2014 10:18 AM Jérôme Schneider

middleware: match url /__version__ or /__version__/

1d6a0108 23 April 2014 09:50 AM Serghei Mihai

readme updated

6ec2e241 27 March 2014 05:06 PM Benjamin Dauvergne

djommon/serializers/json: fix missing import and not handled case of new models

View revisions

Also available in: Atom