django-siteprefs
https://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.3.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_siteprefs-1.3.0.tar.gz | 11.8 kB | Without provenance | Details for django_siteprefs-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_siteprefs-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for django_siteprefs-1.3.0-py3-none-any.whl |
Total release size: 30.7 kB
Release files / django_siteprefs-1.3.0.tar.gz
| Download URL | django_siteprefs-1.3.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3f8e3a760402a7ce42d6f1da627ab88f782fcd60b3539a27fbac04194202580
|
|
BLAKE2b-256 checksum How to use checksums |
06c45dfac9ef4efa89ad952588aa73710deeac3107675e98cd5b952e04c76be5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / django_siteprefs-1.3.0-py3-none-any.whl
| Download URL | django_siteprefs-1.3.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8558acae97b81579773ba43dd3cee9e7b01831ebb74eeb73c414727e81868942
|
|
BLAKE2b-256 checksum How to use checksums |
d07472d04feaf017b601aaf8e3401c9d58512ece07c021067b81563944343358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for django-siteprefs 1.3.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.