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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-pgschemas-0.3.3.tar.gz.
File metadata
- Download URL: django-pgschemas-0.3.3.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c942bc1106296f7f4aef7d9d438858445aa653f1b3f6b7935502e88f6cc2f34
|
|
| MD5 |
83010ddbbaf88f216dbd77d6027587bf
|
|
| BLAKE2b-256 |
b34e60e0b3f2febd99a2027c6561d9c8739b70dd70ff300149ad4d32c2d9a8d4
|
File details
Details for the file django_pgschemas-0.3.3-py3-none-any.whl.
File metadata
- Download URL: django_pgschemas-0.3.3-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
316271d2a5bf71dcacb779e9218f2a9662eb154e2d985f4f813515bea0d15fd0
|
|
| MD5 |
52e3ccd36e6e4cc91e526bdf02ef18c5
|
|
| BLAKE2b-256 |
78452150814161406a25ee39c4dd8c3e54120de992f08d328bb6d3a9e6b58c88
|