Thomas NOËL
803fa500e5
release 6.2.0
2014-10-22 15:38:11 +02:00
Thomas NOËL
60ab23dd91
add safemigrate command ( #5781 )
...
manage.py "safely" migrate a projet :
* syncdb
* for each app installed, with migrations available but never migrated:
migrate --fake <app> 0001
* migrate
2014-10-22 15:27:09 +02:00
Jérôme Schneider
7e82bd8e64
multitenant: add a command to create tenant(s) by hostname
...
Closes #5759
2014-10-17 18:08:58 +02:00
Benjamin Dauvergne
ce71993cc7
In management commands of multitenant app rename variable schema_name as domain
2014-09-18 14:26:16 +02:00
Benjamin Dauvergne
c370a24817
Add tenant based storage handler ( fixes #5501 )
...
To use it, add this to your settings.py:
DEFAULT_FILE_STORAGE = 'entrouvert.djommon.multitenant.storage.TenantFileSystemStorage'
2014-09-15 09:25:10 +02:00
Benjamin Dauvergne
b7f756dee0
Add tests on multitenants features ( fixes #5106 )
2014-09-12 12:02:45 +02:00
Benjamin Dauvergne
fbed23e8e3
Add command list_tenants ( fixes #5044 )
...
refs #5106
2014-09-12 12:02:39 +02:00
Benjamin Dauvergne
5c1d1ad6c9
Add command get_tenant_by_domain
...
refs #5106
2014-09-12 12:02:37 +02:00
Benjamin Dauvergne
3afe385b85
Add command to create missing tenant schemas
...
refs #5106
2014-09-12 12:02:36 +02:00
Benjamin Dauvergne
ccec1ff41f
Import django-tenant-schemas commands to adapt them to our way of managing tenants
...
refs #5106
2014-09-12 12:02:34 +02:00
Benjamin Dauvergne
e8304bf1c5
Make tenant model non savable
...
refs #5106
2014-09-12 12:02:32 +02:00
Benjamin Dauvergne
4cea64a73f
Remove create-tenant command
...
refs #5106
2014-09-12 12:02:30 +02:00
Benjamin Dauvergne
aae80ef0a3
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
2014-09-12 12:02:29 +02:00
Benjamin Dauvergne
ec0613c1a8
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
2014-09-12 12:02:27 +02:00
Benjamin Dauvergne
392340cfb8
In FileSystemLoader use the schema name instead of the domain name for building template path
...
Also add a templates/ suffix.
refs #5106
2014-09-12 12:02:25 +02:00
Benjamin Dauvergne
73b85f5d53
In FileSystemLoader rename settings from MULTITENANT_TEMPLATE_DIRS to TENANT_TEMPLATE_DIRS to unformize with other settings
...
refs #5106
2014-09-12 12:02:22 +02:00
Benjamin Dauvergne
e4332b4337
Remove dead import on tenant_schemas.utils
...
refs #5106
2014-09-12 12:02:11 +02:00
Jérôme Schneider
698c4ef1d2
middleware: match url /__version__ *or* /__version__/
2014-06-24 10:18:41 +02:00
Benjamin Dauvergne
86a1ba9971
bump release to 6.1.0
2014-05-09 14:31:12 +02:00
Benjamin Dauvergne
03bce4e04f
add more entrouvert python packages to VersionMiddleware
2014-04-25 15:53:28 +02:00
Serghei Mihai
1d6a010895
readme updated
2014-04-23 09:50:35 +02:00
Benjamin Dauvergne
6ec2e2418e
djommon/serializers/json: fix missing import and not handled case of new models
2014-03-27 17:06:55 +01:00
Benjamin Dauvergne
ddb023481b
djommon: add JSON serializer supporting natural primary keys
2014-03-27 17:06:54 +01:00
Thomas NOËL
fd48a58cd0
multitenant: little fixes in models.py
2014-03-16 16:47:09 +01:00
Benjamin Dauvergne
3bee3bc11d
setup.py: remove dependency links
2014-03-06 10:15:56 +01:00
Thomas NOËL
84af2705a4
version middleware: add orleans project
2014-03-05 09:44:55 +01:00
Benjamin Dauvergne
c59fb59bb9
multitenant: fix instructions on the settings in the README
2014-02-04 15:23:32 +01:00
Benjamin Dauvergne
68a0bdce87
bumpt version to 6.0
2014-02-04 15:16:43 +01:00
Benjamin Dauvergne
e62d56fcc1
multitenenant extension
2014-02-04 15:14:44 +01:00
Benjamin Dauvergne
dbfa08770b
bump version to 5.0
2014-01-21 21:42:40 +01:00
Benjamin Dauvergne
ab06cb99d5
humantime: convert datetime to current timezone in template tags
2014-01-21 21:42:06 +01:00
Benjamin Dauvergne
1bcca4496d
humantime: adapt datetime timezone before formating the first time
2014-01-21 21:41:59 +01:00
Benjamin Dauvergne
a58b3b8908
bump version
2014-01-21 16:26:24 +01:00
Benjamin Dauvergne
b1b0f6f720
setup.py: adapt to change in Django compilemessages
2014-01-21 15:30:40 +01:00
Benjamin Dauvergne
7b20f440c8
humantime: show datetime in the current timezone
2014-01-21 15:05:15 +01:00
Benjamin Dauvergne
ecc2c1c7ae
humantime: remove x days ago formulation, use short date time format instead
2013-12-04 12:03:47 +01:00
Benjamin Dauvergne
954ab98865
humantime: all datetime objects are also date objects, to diffentiate them you must test for the former
2013-12-03 18:04:58 +01:00
Benjamin Dauvergne
58f837750b
setup.py: add humantime to the list of Django applications in the compile_transations command
2013-12-02 16:33:01 +01:00
Benjamin Dauvergne
a17905116d
add a sinkhole email backend
...
It makes all mails sent by Django go to an unique recipient; use it on
development and preproduction platforms when there are productions
accounts loaded.
2013-12-02 15:19:00 +01:00
Benjamin Dauvergne
2eea590b6d
add humantime locale files to MANIFEST.in
2013-11-26 13:23:02 +01:00
Benjamin Dauvergne
b8580f563e
update __version__
2013-11-23 12:45:50 +01:00
Benjamin Dauvergne
5389979517
add a template tags library to improve presentation of date and time
2013-11-23 01:24:12 +01:00
Benjamin Dauvergne
64e4fc7f53
fix indentation error
2013-08-29 16:05:37 +02:00
Benjamin Dauvergne
16caa784c2
djommon: add a UserInTracebackMiddleware
...
This middleware class add information on the currently logged in user to
request.META effectively logging them in the traceback.
2013-08-29 15:59:35 +02:00
Jérôme Schneider
1de39b2aac
MANIFEST.in: include MANIFEST.in
2013-08-16 09:25:36 +02:00
Jérôme Schneider
4564b8d3a2
setup.py: close file not a string
2013-08-13 17:19:36 +02:00
Jérôme Schneider
4f18903bdb
setup.py sdist: store version into the archive
2013-08-13 17:03:29 +02:00
Jérôme Schneider
8b78025995
middleware: fix python-entrouvert name
2013-08-13 16:56:26 +02:00
Frédéric Péters
ad16b9e2cc
version middleware: fix name of compte-agglo-montpellier
2013-08-13 09:37:12 +02:00
Frédéric Péters
5bdabfd942
version middleware: add more projects
2013-08-10 16:46:26 +02:00