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.1.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.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-pgschemas-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 77dbcc021a3836f368d43f637d2f0ba63f42d1aef43f1fdea3b7c852a5238fc0
MD5 d267b2cdd4622e8b79eb147d52cee1ee
BLAKE2b-256 5da5880ac0c2e6601df451fc8a3a0fdc381cf07f01a5bfa34c9ab68dea3582e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_pgschemas-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb918a28392f0497495a9c985a3cf0e8f0771bc74042e5ddda0c2ae5163704f
MD5 bf3bb28d52207d33a641ede3d7d03b11
BLAKE2b-256 ff97a6b9cf5dc1e659d484028c7c68ae970eccf525a88bcf9cad78d0ae2833f8

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