Metadata-Version: 2.1
Name: django-simple-options
Version: 2.4.0
Summary: Simple app to add configuration options to a Django project.
Home-page: https://github.com/marcosgabarda/django-simple-options
License: MIT
Author: Marcos Gabarda
Author-email: hey@marcosgabarda.com
Requires-Python: >=3.10,<4.0
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: django (>=3.0.0)
Requires-Dist: djangorestframework (>=3.11.0)
Description-Content-Type: text/x-rst

=====================
Django Simple Options
=====================

.. image:: https://img.shields.io/pypi/v/django-simple-options
    :target: https://pypi.org/project/django-simple-options/
    :alt: PyPI

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

.. image:: https://img.shields.io/badge/code_style-black-000000.svg
    :target: https://github.com/ambv/black

.. image:: https://readthedocs.org/projects/django-simple-options/badge/?version=latest
    :target: https://django-simple-options.readthedocs.io/en/latest/?badge=latest
    :alt: 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"
        },
    }


