Skip to main content

Django multi-tenancy through Postgres schemas

Project description

django-pgschemas

Build status Documentation status Code coverage PyPi version Downloads

This package uses Postgres schemas to support data multi-tenancy in a single Django project. It is a fork of django-tenants with some conceptual changes:

  • There are static tenants and dynamic tenants. Static tenants can have their own apps and urlconf.
  • Tenants can be routed via:
    • URL using subdomain or subfolder on shared subdomain
    • Session
    • Headers
  • Public schema should not be used for storing the main site data, but the true shared data across all tenants. Table "overriding" via search path is not encouraged.
  • Management commands can be run on multiple schemas via wildcards, either sequentially or in parallel using multithreading.

Documentation

https://django-pgschemas.readthedocs.io/

Contributing

See CONTRIBUTING.md for details on how to contribute to this project.

Credits

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_pgschemas-1.2.0.tar.gz (178.9 kB view details)

Uploaded Source

Built Distribution

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

django_pgschemas-1.2.0-py3-none-any.whl (84.7 kB view details)

Uploaded Python 3

File details

Details for the file django_pgschemas-1.2.0.tar.gz.

File metadata

  • Download URL: django_pgschemas-1.2.0.tar.gz
  • Upload date:
  • Size: 178.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_pgschemas-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8bc456c146032e4348e241ec2d57e4b89862cf4cf8dde36f81da3c0522b6be31
MD5 500934a367d211e6fb31d2e6e953c840
BLAKE2b-256 1d7ec11e8f6d944fa855a75adce6eae7f4f37260236364c36cbc5164bac09449

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pgschemas-1.2.0.tar.gz:

Publisher: deploy.yaml on lorinkoz/django-pgschemas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_pgschemas-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_pgschemas-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7cf5ae24a451291c6fdab7974e64ca70ddbfed9554bc444f1b2567669cda906
MD5 e8a36e11b330edcf827bc5cfad82561e
BLAKE2b-256 3b74cc8f89317309054f3e9098e170afff7a6ece586b2d9ba286833834b1d171

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pgschemas-1.2.0-py3-none-any.whl:

Publisher: deploy.yaml on lorinkoz/django-pgschemas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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