A table for storing settings
Project description
Information
Provides a table "dp_settings" to store settings in a general way. You can store strings and integers (most common settings) values by using the model.
String is provided through value_string (TextField). Integer is provided through value_int (IntegerField).
Installation
pip install dp-settings
Example Code
object_ = DpSettings.objects.create()
object_.app_name = 'dp_settings'
object_.key = 'active'
object_.value_int = 1
object_ = DpSettings.objects.create()
object_.app_name = 'dp_settings'
object_.key = 'email_from'
object_.value_string = 'test@test.de'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file dp_settings-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: dp_settings-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6707f06634782d368528670e815a41c244b63b4b3f808c87ccdd9f70fe100b9c
|
|
MD5 |
b32cb0a84f5822617c89efb5fd23786d
|
|
BLAKE2b-256 |
efd79a26154572ab904be1966abdb5d42c00bed8ca03971e245192790141487b
|