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'
Release files for dp-settings 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dp_settings-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / dp_settings-0.0.5-py3-none-any.whl
| Download URL | dp_settings-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6707f06634782d368528670e815a41c244b63b4b3f808c87ccdd9f70fe100b9c
|
|
BLAKE2b-256 checksum How to use checksums |
efd79a26154572ab904be1966abdb5d42c00bed8ca03971e245192790141487b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|