add safemigrate command (#5781)
multitenant: add a command to create tenant(s) by hostname
Closes #5759
In management commands of multitenant app rename variable schema_name as domain
Add tenant based storage handler (fixes #5501)
To use it, add this to your settings.py:
DEFAULT_FILE_STORAGE = 'entrouvert.djommon.multitenant.storage.TenantFileSystemStorage'
Add tests on multitenants features (fixes #5106)
Add command list_tenants (fixes #5044)
refs #5106
Add command get_tenant_by_domain
Add command to create missing tenant schemas
Import django-tenant-schemas commands to adapt them to our way of managing tenants
Make tenant model non savable
Remove create-tenant command
New TenantMiddleware which try to find tenants based on the filesystem
If path <settings.TENANT_BASE>/<hostname>/schema exists, read this file an buildtenant modle with Tenant(domain_url=<hostname>, schema_name=file(<path>).read()).
Add middleware to load settings from a JSON file based on the tenant
In FileSystemLoader use the schema name instead of the domain name for building template path
Also add a templates/ suffix.
In FileSystemLoader rename settings from MULTITENANT_TEMPLATE_DIRS to TENANT_TEMPLATE_DIRS to unformize with other settings
Remove dead import on tenant_schemas.utils
debian/control: depends on python-pkg-resources and recommends python-django
fixes #5200
middleware: match url /__version__ or /__version__/
bump release to 6.1.0
add more entrouvert python packages to VersionMiddleware
add missing dependency on python-pkg-resources
readme updated
djommon/serializers/json: fix missing import and not handled case of new models
djommon: add JSON serializer supporting natural primary keys
multitenant: little fixes in models.py
Formats disponibles : Atom