Skip to main content

django-pgschemas

Code style: black Build status Documentation status Code coverage PyPi version Downloads

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 can be simultaneously routed 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

  • Join the discussion at https://github.com/lorinkoz/django-pgschemas/discussions.

  • PRs are welcome! If you have questions or comments, please use the discussions link above.

  • Install dependencies with mise run install and start the database with mise run up.

  • To run the test suite run mise run test or mise run coverage. The tests for this project live inside a small django project called dpgs_sandbox. Database password and database host can be set through the environment variables DATABASE_PASSWORD and DATABASE_HOST.

  • View available tasks with mise tasks.

Credits

Metadata

Release files for django-pgschemas 0.17.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pgschemas 0.17.1
File Size Uploaded Provenance Actions
django_pgschemas-0.17.1.tar.gz 196.0 kB With provenance Details for django_pgschemas-0.17.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-pgschemas 0.17.1
File Interpreter ABI Platform Actions
django_pgschemas-0.17.1-py3-none-any.whl Python 3 none any Details for django_pgschemas-0.17.1-py3-none-any.whl

Total release size: 270.7 kB

Release files / django_pgschemas-0.17.1.tar.gz

Download URL django_pgschemas-0.17.1.tar.gz
Size 196.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eac831002a947cfb15a1afe42d64edb73fb833f72877f51ac84bcc3a67f01e63
BLAKE2b-256 checksum
How to use checksums
a177dd00808d8e7d438086b4997988d28741f903df754f99b7a9c86f03d29f7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / django_pgschemas-0.17.1-py3-none-any.whl

Download URL django_pgschemas-0.17.1-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08b596f371230dab05d1bb3b0fcf69ad57a02907ada2be94a8b879a02373771d
BLAKE2b-256 checksum
How to use checksums
11dfdf7cbe195340329c4369f5321332bd8e186f79605b5cce530facc1243540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for django-pgschemas 0.17.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_pgschemas-0.17.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page