django-dbsettings
dbsettings is a simple reusable Django app allowing you to store key-value pairs in your database, so you can store configuation in your database easily.
Quick start
-
Add "dbsettings" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., 'dbsettings', ]
-
Run
python manage.py makemigrations dbsettingsandpython manage.py migrate dbsettingsto create the models. -
Start the development server and visit http://127.0.0.1:8000/admin/ to add configuration values or use dbsettings.functions.setValue(key, value) in your code.
-
To retrieve a configuration value from the database, use dbsettings.functions.getValue(key) in your code.
Upgrade notes
When upgrading to 0.9 from a previous version, your database tables will need to be updated. To do this, just execute step 2 from the "Quick start" section again.
When upgrading to 0.9.5 or later from a previous version, you should first uninstall the old version. To do that, run:
pip uninstall django-dbsettings
pip install dbsettings
Release files for dbsettings 0.9.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbsettings-0.9.8.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbsettings-0.9.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / dbsettings-0.9.8.tar.gz
| Download URL | dbsettings-0.9.8.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75f6f6942aaa459376f6af5eb342dd648c02baa5d40119ad29e472380e4b811b
|
|
BLAKE2b-256 checksum How to use checksums |
a4995204a6d2bf3723daf8b2e3c198f4be176bbdc75c959b290e28e2de965556
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / dbsettings-0.9.8-py3-none-any.whl
| Download URL | dbsettings-0.9.8-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf2eeccdb4a709971329a9ddbf8d174a03326c6bc062472a663a54d42830613d
|
|
BLAKE2b-256 checksum How to use checksums |
6f54aeef546cb8661964aa5a11c38df2f1e812e4d4fa41ceed206920e2b08c1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|