Skip to main content

The Django-related reusable app provides the ability to store settings in a database and configure settings via an admin interface.

Project description

Introduction

django-fs-livesettings is the Django-related reusable app provides the ability to store settings in a database and configure settings via an admin interface.

Installation

Install django-fs-livesettings using pip:

$ pip install django-fs-livesettings

Add the 'livesettings' application to the INSTALLED_APPS setting of your Django project settings.py file:

INSTALLED_APPS = (
    ...
    'livesettings',
    ...
)

Add LIVESETTINGS_CONF to a settings.py file:

LIVESETTINGS_CONF = (
    ('MY_SETTING_1', 'email', u'Description of this setting.'),
    ('MY_SETTING_2', 'char', u'Description of this setting.'),
)

where, first parameter is a setting’s name, second — it’s type and third — description.

List of types:

boolean
char
date
datetime
decimal
email
file
image
integer
time
url

Usage

Just import livesttings and call that setting you want:

from livesettings.conf import livesettings
print livesettings.MY_SETTING_1

Credits

Fogstream

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fs-livesettings-0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file django-fs-livesettings-0.1.tar.gz.

File metadata

File hashes

Hashes for django-fs-livesettings-0.1.tar.gz
Algorithm Hash digest
SHA256 835342746329569a240ed1c66bf3105a36b0996bc7171567ea941fb7fb15cca0
MD5 4566eecf18b5be5f6bb30101c6413e88
BLAKE2b-256 4613b70c9b4b7926140edb72f344fa4a4c2727f8bdf8368276af259af0fafa79

See more details on using hashes here.

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