Multi-tenancy on Django using PostgreSQL schemas.
Project description
This app uses PostgreSQL schemas to support data multi-tenancy in a single Django project. It is a fork of django-tenants with some conceptual changes:
There are static tenants and dynamic tenants. Static tenants can have their own apps and urlconf.
Tenants are routed both via subdomain and via subfolder on shared subdomain.
Public is no longer the schema for storing the main site data. Public should be used only for true shared data across all tenants. Table “overriding” via search path is no longer encouraged.
Management commands can be run on multiple schemas via wildcards - the multiproc behavior of migrations was extended to just any tenant command.
Documentation
Contributing
Join the discussion at https://gitter.im/django-pgschemas/community.
PRs are welcome! If you have questions or comments, please use the link above.
Django’s code of conduct applies to all means of contribution. https://www.djangoproject.com/conduct/.
Credits
Tom Turner for django-tenants
Bernardo Pires for django-tenant-schemas
Vlada Macek for django-schemata
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_pgschemas-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2443799d8b98978d077843023c639873e2cab0d814bb10949e2d8150f93a57cc |
|
MD5 | 725ce48755c7690c96bcad0c14e155f3 |
|
BLAKE2b-256 | 82f8b237c237d5dd9ac1c8f8e1d184b9310e98b1d9070e97d9e069e504f1a54b |