Skip to main content

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

  1. Add "django_omnitenant" to your INSTALLED_APPS setting 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`

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

django_omnitenant-0.1.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_omnitenant-0.1.2-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file django_omnitenant-0.1.2.tar.gz.

File metadata

  • Download URL: django_omnitenant-0.1.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for django_omnitenant-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9cbe3bfa239e807ebb83da11241e7cb369a4f4ef116aa068a7a4859433a43ce3
MD5 a6cb2365734c38c4df87a182282b022f
BLAKE2b-256 f8873a365c6ca7b389143df847bf7b899a8580aa6fe6ca30a3393c58c2b7159e

See more details on using hashes here.

File details

Details for the file django_omnitenant-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_omnitenant-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee18ef01b9ebff855718e7bc236e1030b00dda98e8694bede724d6c46e88a9f
MD5 92dbcad2ec04d94c83b4434b87e4f086
BLAKE2b-256 b6eb759cc520a46c01372f42fcce8a2fbdfae2aa474528b68543e5779fb5db2e

See more details on using hashes here.

Supported by

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