marcosgabarda / django-simple-options

Simple app to add configuration options to a Django project

Home Page:https://django-simple-options.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Simple Options

PyPI https://codecov.io/gh/marcosgabarda/django-simple-options/branch/main/graph/badge.svg?token=P0XWIJGYZD Documentation Status

Simple app to add configuration options to a Django project.

Quick start

1 Install using pip:

$ pip install django-simple-options

2 Add "options" to your INSTALLED_APPS settings like this:

INSTALLED_APPS += ('options',)

Settings options

Use SIMPLE_OPTIONS_CONFIGURATION_DEFAULT to set the default options:

SIMPLE_OPTIONS_CONFIGURATION_DEFAULT = {
    "sold_out": {
        "value": 0,
        "type": INT,
        "public_name": "Sets tickets as sold out"
    },
}

About

Simple app to add configuration options to a Django project

https://django-simple-options.readthedocs.io

License:MIT License


Languages

Language:Python 99.4%Language:Makefile 0.6%