Skip to main content

Multi-tenancy on Django using PostgreSQL schemas.

Project description

Packaging: poetry Code style: black Join the chat at https://gitter.im/django-pgschemas Build status Documentation status Code coverage PyPi version

This app uses PostgreSQL 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 are routed both via subdomain and via subfolder on shared subdomain.

  • Public is no longer the schema for storing the main site data. Public should be used only for true shared data across all tenants. Table “overriding” via search path is no longer encouraged.

  • Management commands can be run on multiple schemas via wildcards - the multiproc behavior of migrations was extended to just any tenant command.

Documentation

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

Contributing

Credits

  • Tom Turner for django-tenants

  • Bernardo Pires for django-tenant-schemas

  • Vlada Macek for django-schemata

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-0.3.3.tar.gz (24.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_pgschemas-0.3.3-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file django-pgschemas-0.3.3.tar.gz.

File metadata

  • Download URL: django-pgschemas-0.3.3.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp

File hashes

Hashes for django-pgschemas-0.3.3.tar.gz
Algorithm Hash digest
SHA256 4c942bc1106296f7f4aef7d9d438858445aa653f1b3f6b7935502e88f6cc2f34
MD5 83010ddbbaf88f216dbd77d6027587bf
BLAKE2b-256 b34e60e0b3f2febd99a2027c6561d9c8739b70dd70ff300149ad4d32c2d9a8d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_pgschemas-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp

File hashes

Hashes for django_pgschemas-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 316271d2a5bf71dcacb779e9218f2a9662eb154e2d985f4f813515bea0d15fd0
MD5 52e3ccd36e6e4cc91e526bdf02ef18c5
BLAKE2b-256 78452150814161406a25ee39c4dd8c3e54120de992f08d328bb6d3a9e6b58c88

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