A Django app to allow multi-tenancy.
Project description
django-omnitenant
django-omnitenant is a Django app that enables multi-tenancy with DB-level isolation and schema-level isolation.
Detailed documentation is in the "docs" directory.
Quick start
- Add "django_omnitenant" to your
INSTALLED_APPSsetting like this:
INSTALLED_APPS = [
...,
"django_omnitenant",
]
**Note:** Place django_omnitenant at the last in installed apps so that it will reregister all the default only apps to show on default db
**Note:** Make sure `DEFAULT_TENANT_NAME` is postgre schema name complaint
**Note:** Need to set the `DEFAULT_HOST`
### Test
For tests's tenant setup you can override _setup_tenant method to setup tenant but make sure to assign it to the class variable cls.tenant
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
django_omnitenant-0.1.4.tar.gz
(20.2 kB
view details)
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_omnitenant-0.1.4.tar.gz.
File metadata
- Download URL: django_omnitenant-0.1.4.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28f28fcc50f3a975dc7bcb77ef841727d04b7e9301aa90d0bdde28ccbbf49410
|
|
| MD5 |
f1540618bd072e45373e89a9545eef08
|
|
| BLAKE2b-256 |
8603facd2076b6905cb60a13077820fda5b39c23709c029780b96da85b19388d
|
File details
Details for the file django_omnitenant-0.1.4-py3-none-any.whl.
File metadata
- Download URL: django_omnitenant-0.1.4-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91a5c631476a8e38ae7cb088c61b2d4552d7c39d439ad60b2499342d0b60ac27
|
|
| MD5 |
4611c858a78e0f1234efd67a4e72d28b
|
|
| BLAKE2b-256 |
af583be4db0e04b6c3ec3e349901de298fd4c307002b07d913e3f323b64c0415
|