django-pgschemas
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
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
Tom Turner for django-tenants.
Bernardo Pires for django-tenant-schemas.
Metadata
Release files for django-pgschemas 0.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_pgschemas-0.17.0.tar.gz | 196.0 kB | With provenance | Details for django_pgschemas-0.17.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_pgschemas-0.17.0-py3-none-any.whl | Python 3 | none | any | Details for django_pgschemas-0.17.0-py3-none-any.whl |
Total release size: 270.6 kB
Release files / django_pgschemas-0.17.0.tar.gz
| Download URL | django_pgschemas-0.17.0.tar.gz |
|---|---|
| Size | 196.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
611bc79e0d6630bb1412674c938d08d8a27546d758a8f3295c3818465512fd7d
|
|
BLAKE2b-256 checksum How to use checksums |
f42767c5dc4fdaa8a48a60ff692829f41fda8b85c5143e6fb8c36f642182974a
|
| 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 28, 2026.
Transparency logRelease files / django_pgschemas-0.17.0-py3-none-any.whl
| Download URL | django_pgschemas-0.17.0-py3-none-any.whl |
|---|---|
| Size | 74.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a674aaaec3a31e280b07bf9f3e897e79dfe239c721c3efc165aa1dba8d893b2
|
|
BLAKE2b-256 checksum How to use checksums |
7a7202113528a4979fd8f1b063ed98ece14afd39a6c33e9b2fd4d085791dbedf
|
| 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 28, 2026.
Transparency logSecurity for django-pgschemas 0.17.0
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.
Attestation for django_pgschemas-0.17.0.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 28, 2026.
Transparency logA 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.