Django Model Prefix
A Django package that adds a global or model based database table prefix
Installation
Install using pip:
pip install django-model-prefix
Add model_prefix to your INSTALLED_APPS list. Make sure it is the first app in the list
INSTALLED_APPS = [
'model_prefix',
...
]
Usage
Global table prefix
The global database table prefix can be configured using the DB_PREFIX setting
DB_PREFIX = "foo_"
Model table prefix
Optionally a model based prefix can also be defined by extending the models meta class
class Meta:
db_prefix = "bar_"
This can be also used in order to disable the global prefix for a specific model
class Meta:
db_prefix = None
Metadata
Release files for django-model-prefix 1.1.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_model_prefix-1.1.0.tar.gz | 3.1 kB | Without provenance | Details for django_model_prefix-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_model_prefix-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_model_prefix-1.1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / django_model_prefix-1.1.0.tar.gz
| Download URL | django_model_prefix-1.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16fe83c26bafa4d3ef7cb403aae33a104f8490bdf67853e0f9e6e7b4e358fe58
|
|
BLAKE2b-256 checksum How to use checksums |
7fc0b5879e21c0c9abdf86f846d33f634df47130fef8a7ddddb5b8017fdea611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / django_model_prefix-1.1.0-py3-none-any.whl
| Download URL | django_model_prefix-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daf741524803a5c02486d6efc3055adfee6cda60d2fe6430de817afe467938ad
|
|
BLAKE2b-256 checksum How to use checksums |
3de2998bf6cd25156e7598458feaabc5f85c20c67a4f8dd6499b82e3aed77d6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Security for django-model-prefix 1.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.