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.0.tar.gz (24.4 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.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-pgschemas-0.3.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.5.6 Linux/4.4.0-101-generic

File hashes

Hashes for django-pgschemas-0.3.0.tar.gz
Algorithm Hash digest
SHA256 46b9ea25126591f1757d71084173e7cd188583c70ae15f89d5cb767830457d9b
MD5 c45871c8f9bdc8dd641d8c3cb48f46ba
BLAKE2b-256 681bdb3136629bad175c3d72fb4611358798512be48894a0cbedb52d8297e119

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_pgschemas-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.5.6 Linux/4.4.0-101-generic

File hashes

Hashes for django_pgschemas-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfcac669cc276e048200ccd0e5f3783322fd4c168ae41412dda6afdb230d1d59
MD5 f99a9adb1fdfc1afea7f29750e136ba5
BLAKE2b-256 be3fa8fb5ca9ecf3de1bdf7d2ee3ca4c3db974cdc51eed9bc724e94fd4a043b2

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