Benjamin Dauvergne
db1875b90f
Hide database errors when setting the search path
...
It's needed to allow ROLLBACK to be executed on the DB. It resolves
issue #191 .
2014-10-20 11:06:50 +02:00
Bernardo Pires
dec70ee9d7
Merge pull request #193 from bdauvergne/wip/fix-database-transaction-errors
...
Hide database errors when setting the search path
2014-10-04 18:22:28 -04:00
Bernardo Pires
d501387890
Merge pull request #195 from bdauvergne/wip/remove-useless-warning
...
Use warning to complain about tenant_schemas place in INSTALLED_APPS
2014-10-04 18:21:36 -04:00
Bernardo Pires
50f96c9a2a
Merge pull request #190 from rev112/update_manifest_readme
...
Update MANIFEST and setup.py to use README.rst
2014-10-04 18:21:16 -04:00
Benjamin Dauvergne
ccb505976c
Use warning to complain about tenant_schemas place in INSTALLED_APPS
2014-10-04 15:44:38 +02:00
Benjamin Dauvergne
8da5075ef7
Hide database errors when setting the search path
...
It's needed to allow ROLLBACK to be executed on the DB. It resolves
issue #191 .
2014-10-04 09:10:42 +02:00
Anton Ovchinnikov
ae9cd9c80f
Update MANIFEST and setup.py to use README.rst
2014-09-17 10:22:33 +02:00
Bernardo Pires
a5f144ac9d
Merge pull request #189 from bufke/master
...
Prefix 'dev.' no longer removed when routing to a tenant
2014-09-15 17:06:06 +02:00
David Burke
4399bf7fd3
Removed dev. from being removed when routing to a tenant
...
Fixed #184
2014-09-15 11:00:28 -04:00
Bernardo Pires
b11ccf1295
Merge pull request #175 from rev112/schema_name_validation
...
Added validator for TenantMixin.schema_name, check for 'pg_' prefix
2014-09-09 11:35:12 +02:00
Bernardo Pires
dddd3a77a6
Merge pull request #181 from rev112/fix_case_insensitive_schema_name
...
schema_exists now case insensitive
2014-09-09 11:34:55 +02:00
Anton Ovchinnikov
697888d5bf
Make schema_exists case insensitive
2014-09-09 11:20:35 +02:00
Bernardo Pires
6c79d814d6
Merge pull request #179 from rev112/fix_import_orig_backend_for_py3
...
Fixed minor Py3 issues
2014-09-02 15:48:25 +02:00
Anton Ovchinnikov
7e7f19a8f7
Fix minor Py3 issues
2014-09-02 15:23:00 +02:00
Bernardo Pires
8ecd2e6f48
Merge pull request #177 from rev112/fix_version_for_py3
...
Fixed decode error for Python 3
2014-09-01 22:13:35 +02:00
Anton Ovchinnikov
8b79fb6797
Fix decode error for Python 3
2014-09-01 16:51:24 +02:00
Bernardo Pires
f76515ccce
Merge pull request #176 from rev112/readme_to_rst
...
Converted README to reStructuredText (.rst)
2014-08-29 11:27:47 -07:00
Anton Ovchinnikov
e20f265519
Convert README to reStructuredText (.rst)
2014-08-29 18:03:20 +02:00
Anton Ovchinnikov
49705b2cff
Add validator for TenantMixin.schema_name, check for 'pg_' prefix
2014-08-27 11:37:47 +02:00
Bernardo Pires
d986d276d2
Merge pull request #167 from bdauvergne/wip/improve-template-loader-path
...
Allow to store templates in a subdirectory of a tenant directory
2014-08-23 21:22:48 -07:00
Bernardo Pires
b49347acae
Added third party apps section to dos
2014-08-23 21:16:52 -07:00
Bernardo Pires
fe4b18c66a
Merge pull request #165 from rev112/fix_duplicated_tenant_schema
...
Remove duplicated --schema option for tenant_command
2014-08-23 21:12:03 -07:00
Bernardo Pires
cf056fea6d
Merge pull request #172 from rev112/pep8_and_typos
...
PEP8 and typos
2014-08-23 21:07:42 -07:00
Anton Ovchinnikov
f740df449d
PEP8 and typos
2014-08-21 10:33:24 +02:00
Bernardo Pires
419bbd4aa1
Merge pull request #170 from bdauvergne/wip/fix-south-import
...
Does not try to import south syncdb command if south is not in INSTALLED...
2014-08-20 07:51:28 -07:00
Benjamin Dauvergne
8a003f8078
Does not try to import south syncdb command if south is not in INSTALLED_APPS
...
If south is not really installed it break classic configuration since
the SOUTH_ADAPTER is not configured.
2014-08-20 11:27:52 +02:00
Bernardo Pires
54dc45cb0e
Merge pull request #164 from bimsapi/master
...
Added optional optimization setting TENANT_LIMIT_SET_CALLS.
2014-08-19 15:49:00 -07:00
Benjamin Dauvergne
18e7e422b1
Allow to store template in a subdirectory of a tenant directory
...
For example use MULTITENANT_TEMPLATE_DIRS =
('/var/lib/tenants/%s/templates/',) instead of just
('/var/lib/tenants/templates/',).
2014-08-14 16:47:17 +02:00
balcorn
f07a19f62a
doc update
2014-08-05 21:28:46 -04:00
Anton Ovchinnikov
a42018123b
Remove duplicated --schema option for tenant_command
2014-08-04 22:34:58 +02:00
balcorn
f8974b2206
Rename TENANT_PARANOID
...
* Rename to TENANT_LIMIT_SET_CALLS and get_limit_set_calls(), per
pull request feedback.
2014-07-30 14:23:05 -04:00
balcorn
f88f4b91d1
tweak name for consistency with other settings
2014-07-25 00:39:00 -04:00
balcorn
3236e7badc
doc typo
2014-07-25 00:30:03 -04:00
balcorn
347b34ce5e
Make "fast and loose" behavior opt-in
...
* Add support for a `settings.TENANT_SCHEMAS_PARANOID` variable;
if false, limit calls to `set search_path`
2014-07-25 00:26:01 -04:00
balcorn
8dde29cbe0
Revert to setting search_path in _cursor()
...
Ensure called only once, via an instance variable to track.
2014-07-24 23:52:35 -04:00
balcorn
9e8ada6352
Speed enhancement for set search_path()
...
* Refactor out of _cursor() to perform `set search_path()` once during a request cycle.
2014-07-23 16:12:14 -04:00
Bernardo Pires
bde99164c9
Merge pull request #160 from hubbubca/master
...
The updated test client with more actions.
2014-07-02 20:58:25 -07:00
Bernardo Pires
2d605830c7
Merge pull request #158 from maciej-gol/tests_refactored
...
Refactored out test cases
2014-07-02 00:09:21 -07:00
maciej-gol
a3a7c9c835
Refactored out test cases
2014-06-24 19:17:34 +02:00
Bernardo Pires
019fde2c6f
tests run again. fixes #151
2014-06-13 21:26:20 -07:00
Bernardo Pires
afccc902fa
calling tenant_context when there is no previous tenant no longer results in exception. added regression test
2014-06-12 22:08:51 -07:00
Bernardo Pires
83ddf2a2d8
tutorial now uses best practices for settings
2014-06-12 21:53:05 -07:00
Bernardo Pires
4003c2a534
fixed mixing tabs and spaces
2014-06-12 21:34:03 -07:00
Bernardo Pires
690a79069b
added safety checks. thanks @walkman for the idea
2014-06-12 21:30:33 -07:00
Bernardo Pires
37f4d8427f
Merge branch 'master' of https://github.com/bernardopires/django-tenant-schemas
2014-06-11 22:44:03 -07:00
Bernardo Pires
c8e6784f32
fixed nano command to include sudo
2014-06-11 22:43:35 -07:00
Bernardo Pires
6752b8adef
Merge pull request #149 from maciej-gol/custom_request_host
...
Refactored request host processing out into separate method
2014-06-11 10:38:13 -07:00
maciej-gol
b75cef9623
Refactored request host processing out into separate method
2014-06-11 19:26:54 +02:00
kosz85
e4d7ff00ee
Fix Migrations.all_migrations() list by clearing cache
...
Creating Tenant using TenantMixin fails. TenantMixin.create_schema use migrate_schemas command. Command doesn't clear Migrations cache so settings.SOUTH_MIGRATION_MODULES filled with 'ignore' values is ingnored by south Migrations. This cause use on tenant schema migrations also from shared schema.
Fix just clear south Migrations cache after changing settings.SOUTH_MIGRATION_MODULES.
Probably it can be done better, but this solve issue, and I think that place is intuitive.
2014-06-10 22:13:49 +02:00
Bernardo Pires
8f2d5af861
Merge pull request #144 from qdqmedia/allow_syncdb_different_dbs
...
Allow syncdb and migrate for dbs non-managed by django-tenant
2014-06-04 20:45:54 -07:00