Commit Graph

118 Commits

Author SHA1 Message Date
Thomas NOËL 43d6b99c0f remove multitenant, now in hobo (#6491) 2015-03-12 18:55:15 +01:00
Frédéric Péters 1db4b2429e tenant: do not duplicate --domain option in tenant_command (#6459) 2015-02-10 10:09:35 +01:00
Frédéric Péters 6211c547f7 tenant: add "create super user" to example commands 2015-02-10 10:09:35 +01:00
Frédéric Péters dc463f1da7 tenant: fix documentation reference to the manage.py command 2015-02-10 10:09:35 +01:00
Thomas NOËL e831c9d14f release 7.0.0
* django 1.7 support
* store tenant by hostname on filesystem
2015-02-05 18:37:40 +01:00
Thomas NOËL 2ba6f6bfef multitenant: update README 2015-02-05 18:36:06 +01:00
Thomas NOËL e75d051689 multitenant: sync syncdb with upstream 2015-02-05 17:04:14 +01:00
Thomas NOËL 964ebb51d3 multitenant: sync_schemas disabled for django 1.7 2015-02-05 16:49:34 +01:00
Thomas NOËL 7dcc12d830 tenant: fix django 1.6 usage (missing __init__.py) 2015-02-05 16:48:38 +01:00
Thomas NOËL 01a055c619 result of tenant.create_schema is undefined 2015-02-05 16:10:20 +01:00
Thomas NOËL ad0757e72f remove useless get_tenant_by_domain command (#6398) 2015-02-05 16:06:47 +01:00
Thomas NOËL c1206294a1 renamed create_schema to create_schemas 2015-02-05 15:53:07 +01:00
Thomas NOËL c298e1d4e7 migrate: disable if django 1.7 (#6388) 2015-02-05 15:50:23 +01:00
Thomas NOËL eaac238e1b multitenant: use self.schema_name in SyncCommon (#6420) 2015-02-05 14:34:25 +01:00
Thomas NOËL bb762ce4d9 tenants in TENANT_BASE/hostname (#6398) 2015-02-03 17:35:25 +01:00
Thomas NOËL 1f642209e6 migrate_schemas: use django 1.7 if available (#6388) 2015-02-03 17:34:58 +01:00
Serghei Mihai c1f66c779d tenant object passed to context manager.
"deploy tenant" method should be called with three parameters

Closes #6340
2015-01-26 19:01:35 +01:00
Benjamin Dauvergne d2ffb5af34 Add a generic command to deploy service tenants from hobo (#6340)
It must be overloaded by applications.
2015-01-23 18:50:31 +01:00
Jérôme Schneider 1b18c2d90d middleware: PythonSettingsMiddleware overload FileBasedTenantSettingBaseMiddleware and not JSONSettingsMiddleware
Closes #5972
2014-11-20 10:08:46 +01:00
Frédéric Péters 9c67cb9296 versions: add hobo and django-cmsplugin-blurp as projects of interest (#5878) 2014-11-05 13:37:28 +01:00
Thomas NOËL cd1fa56126 add safemigrate_schemas command (#5791) 2014-10-24 16:36:00 +02:00
Thomas NOËL 3a13963441 sync_schemas: notice syncdb before doing it (fix) 2014-10-24 16:06:11 +02:00
Thomas NOËL 87131a80f6 move safemigrate in entrouvert.djommon app (#5781)
entrouvert.djommon.safemigrate app was just superfluous.
2014-10-23 20:29:02 +02:00
Thomas NOËL bf1da7173e improve safemigrate command (#5781)
better readability, handle verbosity, prepare for safemigrate_schema
2014-10-23 20:23:02 +02:00
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