django-runtime-options

Penn Labs example description


Keywords
django
License
MIT
Install
pip install django-runtime-options==0.1.3

Documentation

Django Runtime Options

CircleCI Coverage Status PyPi Package

Requirements

  • Python 3.6+
  • Django 2.2+

Installation

Install with pip pip install django-runtime-options

Add options to INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'options.apps.OptionsConfig',
    ...
)

(Optionally) add the following to urls.py

urlpatterns = [
    ...
    path("options/", include("options.urls", namespace="options")),
    ...
]

Documentation

Runtime options can either be set in the django admin site or by using the setoption command.

An example of the management command is ./manage.py setoption key value --type TXT which will create or update an option with the key "key" to the value "value"

Changelog

See CHANGELOG.md

License

See LICENSE