Skip to main content

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


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

dp_settings-0.0.5-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page