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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-simple-options-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a0f2d42fd3f1d1536ca17b08a32151eb0d5fb0b5df71b89ac1db0d930ade47 |
|
MD5 | 2233220f50a4d01df43cc5407d07f77b |
|
BLAKE2b-256 | 0dc7fb65eed408b71236c555bf79f838cc9f1676cd72242366ea9384996ba4b4 |
Close
Hashes for django_simple_options-1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44e595f9ad9dd6d9c0355c5b24f5b2c58e7e37f666effa7705356ea211970cb |
|
MD5 | 46bb27455627598b4390b0bf6c11e2ca |
|
BLAKE2b-256 | 8b0639a6529513d2a6c1fc199346d1ccb87b1a77c5379fc52da97938157bf0de |