Commit Graph

365 Commits

Author SHA1 Message Date
Christian Felipe e2c40ac71f add missed super call to migrate command 2014-06-04 14:24:41 +02:00
Christian Felipe 6a2aeb5c63 allow migrate for dbs not managed by tenant 2014-06-04 14:19:35 +02:00
Christian Felipe 86bc270141 allow syncdb for db not managed by tenant 2014-06-04 13:42:27 +02:00
Bernardo Pires 6678ccfc00 Merge pull request #143 from klynch/master
Use old style indexing in format strings
2014-06-03 17:27:27 -07:00
Kevin Lynch 6fa3502968 Fixes #142 Use old style indexing in format strings
Unable to set search_path with Python 2.6 due to unindexed format string.
2014-06-03 16:51:39 -04:00
Bernardo Pires 6d72f60135 Merge pull request #141 from wm3ndez/master
Python3 support
2014-05-31 13:15:45 -07:00
Bernardo Pires 311c157c37 Merge branch 'master' of https://github.com/bernardopires/django-tenant-schemas 2014-05-31 13:15:43 +02:00
Bernardo Pires 7d6ab02afe schema_name now unique 2014-05-31 13:13:47 +02:00
Williams Mendez a442eefd34 py3 compatibility 2014-05-28 16:39:18 -04:00
Williams Mendez cf58c67915 Some PY3 love 2014-05-28 10:23:06 -04:00
Bernardo Pires a462adcf15 Merge pull request #131 from chrisfranklin/patch-1
Fix #41 - set settings_dict['SCHEMA'] for south.
2014-04-27 11:16:45 +02:00
Chris Franklin fe672b1b90 Fix #41 - set settings_dict['SCHEMA'] for south.
This is required by SOUTH to perform migrations correctly.
2014-04-27 10:15:18 +01:00
Bernardo Pires a6e682d3a1 now properly migrating to current state, thanks daniel ferreira 2014-04-24 15:04:48 +02:00
Bernardo Pires 4330f75b20 added new setting TENANT_CREATION_FAKES_MIGRATIONS, issue #64 2014-04-23 23:18:56 +02:00
Bernardo Pires 3bc39ed121 rewrote separate projects section 2014-04-23 23:13:15 +02:00
Bernardo Pires c4bbd59910 removing deprecation warning 2014-04-23 23:04:02 +02:00
Bernardo Pires fdde81e653 Merge pull request #125 from helenst/fix-sync-schemas
Fixed issue with sync_schemas not recognising models in directory
2014-04-11 22:58:13 +02:00
Helen Sherwood-Taylor 95884a8dad Fixed issue with sync_schemas not recognising models in directory
(Removed models attribute check on result of get_apps() since this
does not encompass all scenarios)
2014-04-11 20:30:25 +01:00
Bernardo Pires 5798fdfb2b Merge pull request #103 from entrouvert/master
added template loaders for finding templates based on the current tenant
2014-04-02 10:38:08 +02:00
Benjamin Dauvergne 0fcf1b95d7 add template loaders looking for template based on the current tenant
CachedLoader is similar to the django.template.loaders.cached.Loader but
it adds the tenant instance id to the key used for caching.

FilesystemLoader is similar to django.template.loaders.filesyste.Loader
but it uses the setting key MULTITENANT_TEMPLATE_DIRS instead of
TEMPLATE_DIRS and looks for template inside the directory
os.path.join(MULTITENANT_TEMPLATE_DIRS, tenant.domain_url).
2014-04-02 00:15:49 +02:00
Bernardo Pires 17e7c79047 cleaning up code and fixed #65, fixed #115, fixed #121 2014-03-21 14:36:34 +01:00
Patrick Shields 276055ad65 PEP 8 2014-02-20 14:37:29 -05:00
Patrick Shields 710fb52640 Was using patch in the other supers. That'll teach me to cut and paste. 2014-02-20 14:21:38 -05:00
Patrick Shields 4a019ee5eb Removed json content type default from delete. 2014-02-20 14:10:25 -05:00
Patrick Shields 4c39e86d4b Added a delete method. 2014-02-20 13:58:53 -05:00
Patrick Shields 76095afc45 Added a put method. 2014-02-20 13:37:34 -05:00
Patrick Shields ded413940e Default the patch content type to json. 2014-02-20 13:32:42 -05:00
Patrick Shields 5c13f80995 Added patch method to the test client. 2014-02-20 13:16:33 -05:00
Bernardo Pires 2ccc10af76 Merge pull request #116 from owais/master
Fixed #113: Added a setting variable that lets devs add extra paths to postgresql's search_path.
2014-02-20 14:01:20 +01:00
Owais Lone 25d8779561 Fixed #113: Added a setting variable that lets devs add extra paths to postgresql's search_path.
This way developers can install postgresql extensions in a dedicated schema and make it available globally.
Extensions can be installed to `public` schema too but the `public` is not always added to search_path, for example when running database migrations on --tenant apps.
2014-02-20 18:20:54 +05:30
Bernardo Pires 2e69cc810c readded download and version badges to docs 2013-12-25 18:27:40 +01:00
Bernardo Pires 443138938c updated readme to now contain a short installation guide 2013-12-24 12:38:53 +01:00
Bernardo Pires 0ee3e47323 tenant_command now accepts options from the command to be wrapped. resolves #99 2013-12-22 18:01:51 +01:00
Bernardo Pires ab9eb6ac3d Merge pull request #95 from jrutila/zipsafe
Added zip safe so that easyinstall will work.
2013-12-22 07:14:25 -08:00
Bernardo Pires 30d6428126 fixed sync_schemas and migrate_schemas not taking arguments 2013-11-24 09:54:30 +01:00
Bernardo Pires 45c32caff3 Merge pull request #90 from aniav/master
Fix tests, move from PUBLIC_SCHEMA_URL_TOKEN to PUBLIC_SCHEMA_URLCONF
2013-11-20 07:55:01 -08:00
Juho Rutila ef3093c1e6 Added zip safe so that easyinstall will work. 2013-11-18 21:50:23 +02:00
Bernardo Pires 9d5a9e6782 fixed get_schema_name not being called get_schema 2013-11-15 09:09:09 +01:00
Bernardo Pires 98f7067f41 readded backwards compatibility (get_schema_name and get_tenant) 2013-11-15 09:01:17 +01:00
Bernardo Pires 36b22bc649 Resolved merge conflicts on docs regarding tenant and schema_name 2013-11-15 09:00:12 +01:00
Bernardo Pires f7ee9920fb Merge branch 'master' of github.com:bernardopires/django-tenant-schemas 2013-11-15 07:57:10 +01:00
Walkman 9664056bce Removed unneccesary PGThread.
Django connections are thread locals by default, it's safe to attach
attributes to the DatabaseWrapper, because those are thread safe.
Removed connection.get_schema() and connection.get_tenant() methods,
those were not very pythonic at all. Use connection.schema_name and
connection.tenant properties instead.
2013-11-15 00:50:05 +01:00
Bernardo Pires 75dd212b3f Merge pull request #91 from aniav/django-1.4
Introduce Django 1.4 compatibility
2013-11-11 00:27:50 -08:00
Anna Warzecha 862a7c0f2b Introduce Django 1.4 compatibility 2013-11-11 01:02:05 +01:00
Anna Warzecha 364fc2a3ff Remove obsolete setting 2013-11-10 22:47:49 +01:00
Anna Warzecha 8e577e4a8a Fix tests, move from PUBLIC_SCHEMA_URL_TOKEN to PUBLIC_SCHEMA_URLCONF 2013-11-10 22:42:36 +01:00
Bernardo Pires 447cef034e fixed small mistakes on the docs 2013-11-03 10:17:29 +01:00
Bernardo Pires d3e4839b4f fixed pypi badges 2013-11-03 10:13:24 +01:00
Bernardo Pires c5004716c8 added missing setting PUBLIC_SCHEMA_NAME to docs 2013-11-03 10:09:24 +01:00
Bernardo Pires c2aa8e66b3 now using proper codeblocks for docs 2013-11-03 10:03:37 +01:00