Commit Graph

50 Commits

Author SHA1 Message Date
Bernardo Pires a15f0dbd1d Updated docs regarding Django 1.7 changes. 2015-01-05 15:54:11 +01:00
Bernardo Pires 950b66583c Added note to docs about how to run tests with the new dts_test_project. 2014-12-29 00:14:01 +01:00
Bernardo Pires 5c6d374572 Corrected DATABASE_ROUTERS setting not being displayed correctly as code. 2014-12-29 00:08:23 +01:00
Bernardo Pires c0ebde0895 Reviewed documentation. Correct some mistakes and updated the get involved section. 2014-12-27 16:26:13 +01:00
Bernardo Pires eed14ccc3c Added database router. Allows TENANT_APPS and SHARED_APPS to be synced completely separately without messing with Django settings like INSTALLED_APPS or model.meta.managed. Centralized auth is now possible, but cross schema constraints will not be created. This also makes this app thread safe, fixes #2. 2014-12-27 16:13:37 +01:00
Bernardo Pires 115b03a157 added createsuperuser command to the docs 2014-12-25 21:06:11 +01: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
Anton Ovchinnikov f740df449d PEP8 and typos 2014-08-21 10:33:24 +02: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
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
Williams Mendez a442eefd34 py3 compatibility 2014-05-28 16:39:18 -04: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 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
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 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
Bernardo Pires 36b22bc649 Resolved merge conflicts on docs regarding tenant and schema_name 2013-11-15 09:00:12 +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
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 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
Bernardo Pires e5ffdad251 updated and fixed docs styling 2013-11-03 09:54:30 +01:00
Bernardo Pires 65571f2123 added missing examples docs, fixed pip 2013-10-24 09:05:27 +02:00
Bernardo Pires a9bae38aff updated docs regarding example project 2013-10-20 13:41:46 +02:00
Bernardo Pires a5a3438161 updated docs 2013-10-20 10:34:45 +02:00
Bernardo Pires 92615d0b5e added small deployment guide with apache to the docs 2013-10-09 19:46:33 +02:00
Walkman 2ab5972b5e Added section describing different WSGI setup, fixed small issues with docs. 2013-09-24 00:56:25 +02:00
Bernardo Pires 7870bf4fa6 disabled direct calls to syncdb and migrate 2013-09-22 16:27:59 +02:00
Stephen J. Fuhry 77d0ef8762 documentation for tenant_command 2013-09-09 16:55:00 -04:00
Bernardo Pires e0e6817488 fixing typos 2013-08-14 20:46:23 +02:00
Bernardo Pires 7363e2bf11 Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas 2013-06-28 15:02:35 +02:00
Bernardo Pires 56397fa16c now using a much cleverer tenant URL routing 2013-06-28 15:01:48 +02:00
Stephen J. Fuhry b862c0da01 don't use port number in domain_url 2013-06-18 22:47:52 -04:00
Bernardo Pires 2365ed1689 middleware no longer requires URL to end in / 2013-06-05 18:38:15 +02:00
Bernardo Pires ef4f002534 fixed public apps also being migrated to tenant apps 2013-03-27 10:09:52 +01:00
Bernardo Pires f4db705112 fixed schema_name parameter being ignored when syncing tenants 2013-03-16 10:57:37 +01:00
Bernardo Pires a966133fd3 updating docs. updated setup.py and manifest.in to include docs properly 2013-03-06 08:21:28 +01:00
Bernardo Pires 727e564b57 now calling the south-syncdb if south is present. fixed issue #36 2013-03-03 15:25:28 +01:00
Bernardo Pires e5b84dc86c updating docs again 2013-03-03 13:50:51 +01:00
Bernardo Pires 42f863e3e3 updating docs to solve issue #35 2013-03-03 13:46:23 +01:00
Bernardo Pires e9e913d6b5 Merge branch 'master' of https://github.com/bcarneiro/django-tenant-schemas 2013-03-03 09:30:38 +01:00
Bernardo Pires afecca2e11 pypi should now correctly contain all files 2013-03-03 08:44:03 +01:00
Mike Robinson 226b1349d0 Updated docs to address required tenant-specific Django contrib apps. Addresses ticket #4. 2013-03-02 13:25:36 -05:00
Bernardo Pires 025638e648 updating docs 2013-03-02 16:30:08 +01:00
Chris Franklin ea835b59a4 Fixed a link! 2013-02-28 09:57:01 +00:00
Chris Franklin 1777b4f8ab Added sphinx format documentation matching the current README file with a few layout changes, no real change to the content. 2013-02-28 00:28:46 +00:00