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


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-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

django_fs_livesettings-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file django_fs_livesettings-1.0.0.tar.gz.

File metadata

  • Download URL: django_fs_livesettings-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for django_fs_livesettings-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f40eb1bab8bf9e803ba887b6427f79c46137ed9179f8ff294db362e1aa585622
MD5 04e9d6d9d55c2a432fa2964a911c5082
BLAKE2b-256 2c027b804fda129f7e3bd8b72a62a7f81abd4df6dd6afc418bb990aa1bf0cbae

See more details on using hashes here.

File details

Details for the file django_fs_livesettings-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_fs_livesettings-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a21ed4f61a67aa2384500f414711176254db6d9deb013cf12c80e4e7159d0b
MD5 d5b062b43165afa3b9e051dd30912a3c
BLAKE2b-256 812c64cac07dff4fe39c8f932426bbd8536e7d993213c202d78eb727c1ea759a

See more details on using hashes here.

Supported by

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