Skip to main content

Simple app to add configuration options to a Django project.

Project description

PyPI https://codecov.io/gh/marcosgabarda/django-simple-options/branch/main/graph/badge.svg?token=P0XWIJGYZD https://img.shields.io/badge/code_style-black-000000.svg 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"
    },
}

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-2.4.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

django_simple_options-2.4.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file django_simple_options-2.4.0.tar.gz.

File metadata

  • Download URL: django_simple_options-2.4.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-1041-azure

File hashes

Hashes for django_simple_options-2.4.0.tar.gz
Algorithm Hash digest
SHA256 99fdbeef948ebb31aa3f41b096554ccf13fdd0d0df5b63eb3d67925544450a8f
MD5 03ec0bb717a647fb2b0c04b1bc353524
BLAKE2b-256 bd7a5eab03e9f99b34da6d98af96e061d5bf394971869d02c53f5b8fa075c2f5

See more details on using hashes here.

File details

Details for the file django_simple_options-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_simple_options-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e720d4578ab697b5ef4326185dbbf959606bf5f271fe3b55e9a9981be98c44e
MD5 ed9dc0812d61ca309ad10134828474ec
BLAKE2b-256 1fe5a7ce2d77aca131c2ae267689d22adf2f5af7769a24770bb9cc976c501a53

See more details on using hashes here.

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