Skip to main content

Django app that provides possibility to add settings that can be changed in DB.

Project description

# dj-livesettings

Django app that provides possibility to add settings that can be changed in DB.

Getting Started

  1. Add ‘livesettings’ to INSTALLED_APPS
  2. Set LIVESETTINGS_CACHE_TIME in settings.py
  3. Add livesettings in /admin/livesettings/

Typical Usage

# in settings.py FOO = ‘foo’

# in foo.py from livesettings.api import live_settings print(live_settings.FOO) # >>> ‘foo’

# if in admin we add livesetting FOO with value bar print(live_settigns.FOO) # >>> ‘bar’

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

dj-livesettings-0.1.5.tar.gz (3.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page