middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
Closes #5972
add safemigrate_schemas command (#5791)
sync_schemas: notice syncdb before doing it (fix)
move safemigrate in entrouvert.djommon app (#5781)
entrouvert.djommon.safemigrate app was just superfluous.
improve safemigrate command (#5781)
better readability, handle verbosity, prepare for safemigrate_schema
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
middleware: match url /__version__ or /__version__/
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
multitenant: fix instructions on the settings in the README
multitenenant extension
humantime: convert datetime to current timezone in template tags
humantime: adapt datetime timezone before formating the first time
humantime: show datetime in the current timezone
humantime: remove x days ago formulation, use short date time format instead
humantime: all datetime objects are also date objects, to diffentiate them you must test for the former
add a sinkhole email backend
It makes all mails sent by Django go to an unique recipient; use it ondevelopment and preproduction platforms when there are productionsaccounts loaded.
add a template tags library to improve presentation of date and time
fix indentation error
djommon: add a UserInTracebackMiddleware
This middleware class add information on the currently logged in user torequest.META effectively logging them in the traceback.
djommon: add decorated_include utility extracted from polynum
version middleware: use application/json for mime-type
djommon: add a django VersionMiddleware
trivial: do not use an intermediary variable for widowless templatetag
eohumanize: template tags for eo applications
start a djommon django application