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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenant_django-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 68c811007c602596f18659e6d009f5ff6ef963325d3858d54a50d02761eede1d
MD5 fcd2c655d48080e9e4ff2406012014f7
BLAKE2b-256 5241219658e56b7cdab612131aea281c0a762d11288866e2c9dc6b095329ada4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tenant_django-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e74ea91a093bcdae681e8941107dec274a38de7d112c622887470a46f7bd0dd
MD5 927c135811db99bbb37fc4f0c86c2d1b
BLAKE2b-256 ef55db72609a34c0d2a1ff4ccd23d4e4b580bd8071b65f19af0e741da33064e2

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