Django Singleton Model
Singleton design-pattern implementation for using with django models and works with more recent versions of django
Installing
Install the package
$ pip3 install django-singleton-model
and that’s it. Don’t add it to INSTALLED_APPS.
Using
Import the SingletonModel class and inherit from it
from singleton_model import SingletonModel
class MySingleModel(SingletonModel):
pass
Running tests
Go into example folder
$ cd example
and run them
$ ./manage.py test
Troubleshooting
Check the example folder if you have any doubts. Or you can create an issue.
Metadata
Release files for django-singleton-model 0.2.3
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_singleton_model-0.2.3.tar.gz | 2.8 kB | Without provenance | Details for django_singleton_model-0.2.3.tar.gz |
Release files / django_singleton_model-0.2.3.tar.gz
| Download URL | django_singleton_model-0.2.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bff6a069404614dfc92bd3404855e4e70bfff63b7a7c01912d85fabb352675f1
|
|
BLAKE2b-256 checksum How to use checksums |
452fb0a880d369e8c2dd1b7012518c5ff51168dc94e58d7ed9ca503dbe9dd64d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-singleton-model 0.2.3
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.