Skip to main content

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


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.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

tenant_django-0.0.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file tenant_django-0.0.3.tar.gz.

File metadata

  • Download URL: tenant_django-0.0.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for tenant_django-0.0.3.tar.gz
Algorithm Hash digest
SHA256 372fccf8c9b7d1b7b3e3e5ddc35836f035f7b4a8717d25d2038af12dbb38b12b
MD5 9908291a537923d14595463619997f0b
BLAKE2b-256 a24c71c6fba795a34d95eed3b0ab0c54ab82ee12fa3435cda7bb1f92ec8ef7d3

See more details on using hashes here.

File details

Details for the file tenant_django-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tenant_django-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d447473e2bf720c4532eeeaaf0dbd4abcdf0796e83af2096b6475227879d00d8
MD5 a48a8a82c51a8297c88afc38654de492
BLAKE2b-256 1da29e3dffb92d914da4e8fdb98f49a27756d1a92d81d531859955ef4a58dbe4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page