Django Runtime Options
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