Skip to main content

Simple app to add configuration options to a Django project

Project description

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 CONFIGURATION_DEFAULT_OPTIONS to set the default options:

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

History

1.2 (2019-07-26)

  • Added admin to user options.

  • Added integration with Django Rest Framework.

  • Added tests.

1.1 (2019-07-01)

  • Added validation on types before saving (Thanks to @aaloy!).

1.0 (2018-10-2)

  • Added model for user’s custom options.

1.0a3 (2018-8-29)

  • Fixed dependency with GeoDejango.

1.0a2 (2017-2-20)

  • Add search options to admin.

  • Export current options command.

1.0a1 (2017-2-20)

  • First release on PyPI.

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

django-simple-options-1.2.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

django_simple_options-1.2-py2.py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page