middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
Closes #5972
versions: add hobo and django-cmsplugin-blurp as projects of interest (#5878)
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
release 6.2.0
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__/
bump release to 6.1.0
add more entrouvert python packages to VersionMiddleware
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
version middleware: add orleans project
multitenant: fix instructions on the settings in the README
bumpt version to 6.0
multitenenant extension
bump version to 5.0
humantime: convert datetime to current timezone in template tags
humantime: adapt datetime timezone before formating the first time
bump version
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.
update version
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.
middleware: fix python-entrouvert name
version middleware: fix name of compte-agglo-montpellier
version middleware: add more projects
version middleware: fix auquotidien package name
add Calebasse into ENTROUVERT_PACKAGES
bump release to 1.3
logging: add a decorator to log timing of functions or methods
Use it like that:
from entrouvert.logging.decorators import timing
@timing(0, 1, logger='timing') def method(arg0, arg1): etc... return arg0
It will output lines to the logger named 'timing' at the DEBUG level::...
logging: set default max_length for syslog lines to 120
logging: handlers are old style class, super does not work there
logging: make maximum line length configurable
logging: remove BOM addition to log messages
bump version to 1.2
logging: add logging handler SysLogHandler
- it properly handle unicode, - it wraps long content as multiple log lines.
djommon: add decorated_include utility extracted from polynum
bump version to 1.1
version middleware: add entrouvert to the list of eo packages
version middleware: use application/json for mime-type
djommon: add a django VersionMiddleware
VersionMiddleware: make get_packages_version a class method
trivial: do not use an intermediary variable for widowless templatetag
add au quotidien to list of projects
isolate code to get package versions from wsgi mechanics
update tests to work with Python 2.6
add git commit number to version when in a git repository
eohumanize: template tags for eo applications
start a djommon django application
wsgi middleware for exposing version of entrouvert python package
fixes #2797