Skip to main content

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

  1. Add "dbsettings" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
         ...,
         'dbsettings',
     ]
    
  2. Run python manage.py makemigrations dbsettings and python manage.py migrate dbsettings to create the models.

  3. 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.

  4. 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)

Source distribution for dbsettings 0.9.8
File Size Uploaded
dbsettings-0.9.8.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbsettings 0.9.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.9.8 This release

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page