Stéphane Raimbault
6f6c871a0c
Fix documentation about custom management commands ( #464 )
2017-04-17 15:03:59 +05:00
Gary Reynolds
2e789f71bc
TenantStorageMixin ( #442 )
...
* Add a tenant aware storage backend.
Using a mixin that can be combined with existing core and 3rd party
storage backends which isolates user uploaded media by introducing a
directory based on the schema_name (which shouldn't change after it's
been created) and a symbolic link from the domain_url to the directory.
In the reverse proxy, the domain_url can be parametrised to serve the
content via the symbolic link.
* WARN if project is not using a tenant aware storage backend.
* Add collectstatic_schemas management command
* Update the __all__ directive for tenant_schemas.storage
* Update test project for storage mixins
* Add documentation for DEFAULT_FILE_STORAGE changes
2017-02-22 20:08:37 +11:00
Gary Reynolds
2190883129
Document a position on supported versions of Django & PostgreSQL
...
- policy for Django (all currently supported versions)
- policy for PostgreSQL (minimum version of latest Django version)
Upped the link to PostgreSQL's schema documentation to match new minimum (9.2).
2016-11-11 17:26:23 +11:00
Farooq Azam
529361a85f
Removed quotes from username value for createsuperuser command
2016-10-21 16:26:02 +05:00
Bernardo Pires
906160f357
Update use.rst
2016-10-03 22:44:36 +02:00
Bernardo Pires
805d58a8fb
Updated utils docs
2016-10-03 22:44:00 +02:00
Justin Wunderle
d9ce4ff99a
Add TenantContextFilter - put schema_name and domain_url in log records
...
Add a LOGGING configuration similar to the section below.
LOGGING = {
'filters': {
'tenant_context': {
'()': 'tenant_schemas.log.TenantContextFilter',
},
},
'formatters': {
'default': {
'format': '[%(schema_name)s:%(domain_url)s] '
'%(levelname)s %(asctime)s '
'%(message)s',
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'default',
'filters': ['tenant_context'],
},
},
}
Your logging output will not look something like:
[example:example.com] DEBUG 13:29 django.db.backends: (0.001) SELECT ...
2016-09-26 07:40:35 +10:00
Bernardo Pires
5d33237ba0
Merge pull request #321 from mikicz/ignore-missing-schemas
...
Raising an exception when a schema is missing, added an option to migrate_schemas to ignore this error
2016-09-21 21:07:00 +02:00
Mikuláš Poul
d1e8484252
Wrote some docs for utils
2016-06-22 16:15:51 +02:00
Mikuláš Poul
c4129e540b
Merge branch 'master' into ignore-missing-schemas
...
Conflicts:
docs/use.rst
tenant_schemas/management/commands/migrate_schemas.py
2016-06-22 15:47:45 +02:00
Gary Reynolds
cb8862d026
Remove Django < 1.8 compatibility
...
- resolves template loading in Django 1.8+ (thanks to @tomturner)
- removed code branches based on django.VERSION value
- updated documentation to remove details of removed functionality
Closes #289
2016-05-18 22:18:31 +10:00
Mikuláš Poul
bb536708c4
Removed the --ignore-missing-schemas option, raising a different exception
2016-04-07 17:23:41 +02:00
Mikuláš Poul
538fdf48f1
Raising an exception when a schema is missing, added an option to migrate_schemas to ignore this error
2016-02-20 21:17:39 +01:00
Gary Reynolds
77ef08e429
Wrap dumpdata in tenant_command - was fixed in 5cdc7ef
.
2015-08-01 23:14:36 +10:00
Gary Reynolds
54d90b4597
Add list_tenants management command.
...
Useful for scripting to be able to invoke other management commands for all tenants.
2015-08-01 21:46:10 +10:00
Bernardo Pires
6a3a3d7a18
Updated documentation to reflect current stage of migrate_schemas and sync_schemas.
2015-07-31 16:12:22 +02:00
Bernardo Pires
01b8ba54f7
Minor doc fixes
2015-07-31 16:02:36 +02:00
Bernardo Pires
29c9a3957b
Add note about django-debug-toolbar. Fixes #222 .
2015-07-31 15:59:19 +02:00
Mark Kennedy
0e28cc3bf9
Add example usage of BaseTenantCommand
...
Added some sample code showing what I think is the intended way of wrapping an existing command using BaseTenantCommand.
2015-04-09 20:57:58 -04: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
115b03a157
added createsuperuser command to the docs
2014-12-25 21:06:11 +01: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
balcorn
f07a19f62a
doc update
2014-08-05 21:28:46 -04: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
Bernardo Pires
447cef034e
fixed small mistakes on the docs
2013-11-03 10:17:29 +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
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
Stephen J. Fuhry
b862c0da01
don't use port number in domain_url
2013-06-18 22:47:52 -04: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
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
025638e648
updating docs
2013-03-02 16:30:08 +01: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