A multitenant multidatabase middleware for django
Project description
easyapi-django
A multitenant muiltidatabase MySql router for Django
Install
pip install tenant-django
Add database router to Django settings
DATABASE_ROUTERS = ['tenant.DBRouter']
Set tenant
from tenant import set_tenant
set_tenant(identifier)
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
tenant_django-0.0.1.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file tenant_django-0.0.1.tar.gz
.
File metadata
- Download URL: tenant_django-0.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d32ad9b08fd7dd0921699286bc939efcda1bbf66c69baecb7f9628fca66b687 |
|
MD5 | 136e2c7b5b6abee672859bdd8be993c7 |
|
BLAKE2b-256 | ed0c560c177324c741955e323b7b3cbfb2ccba2240a7f63b521355196fe8ad01 |
File details
Details for the file tenant_django-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tenant_django-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc69a2907aeb0a0752e3e5f63cf98309a68a8dba56a45edfbe231a44a548647 |
|
MD5 | 2d9d36224c4aa80ce46e9ff2b3d33c6a |
|
BLAKE2b-256 | a52172ee9fbd0220e32211f1bab8cc3418ee5b2433e51c8d0594d7b124cce21f |