django-siteprefs
http://github.com/idlesign/django-siteprefs
What’s that
django-siteprefs allows Django applications settings to come alive
Let’s suppose you have your pretty settings.py file with you application:
from django.conf import settings
MY_OPTION_1 = getattr(settings, 'MY_APP_MY_OPTION_1', True)
MY_OPTION_2 = getattr(settings, 'MY_APP_MY_OPTION_2', 'Some value')
MY_OPTION_42 = getattr(settings, 'MY_APP_MY_OPTION_42', 42)
Now you want these options to be exposed to Django Admin interface. Just add the following:
# To be sure our app is still functional without django-siteprefs.
if 'siteprefs' in settings.INSTALLED_APPS:
from siteprefs.toolbox import preferences
with preferences() as prefs:
# And that's how we expose our options to Admin.
prefs(MY_OPTION_1, MY_OPTION_2, MY_OPTION_42)
After that you can view your settings in Django Admin.
If you want those settings to be editable through the Admin - siteprefs allows that too, and even more.
Read the docs ;)
Documentation
Metadata
Release files for django-siteprefs 1.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 | |
|---|---|---|---|---|
| django-siteprefs-1.2.3.tar.gz | 22.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_siteprefs-1.2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 44.8 kB
Release files / django-siteprefs-1.2.3.tar.gz
| Download URL | django-siteprefs-1.2.3.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65ae6a1403ae75e33e6c4d63ebe0974f511346a1cf2be10efff7ed56b6a0e13e
|
|
BLAKE2b-256 checksum How to use checksums |
ea9255b9d9d809d340ff8f164005d24b78baaa6b3342074ad4149e5b11a30e0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Release files / django_siteprefs-1.2.3-py2.py3-none-any.whl
| Download URL | django_siteprefs-1.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2c83c9216c2b341dd526d80489e1049da2960c38af2d61758b5c567298eb1137
|
|
BLAKE2b-256 checksum How to use checksums |
28d509a323b01c8fcff7f1d068d5bc2b349d510276110276b67259fc3143b6e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for django-siteprefs 1.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.