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
Close
Hashes for dp_settings-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6707f06634782d368528670e815a41c244b63b4b3f808c87ccdd9f70fe100b9c |
|
MD5 | b32cb0a84f5822617c89efb5fd23786d |
|
BLAKE2b-256 | efd79a26154572ab904be1966abdb5d42c00bed8ca03971e245192790141487b |