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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efaa7722d26a7462b5e06ddc7085bdea720cda8b4cb25c01b319e3576481157d |
|
MD5 | 3f93371b3508b06d8ad9a99d5d28e54f |
|
BLAKE2b-256 | 3a81f0130b0082b8c1cf021b11d7743528d61a1a64196265cc66b3d9e7d85acd |
Close
Hashes for django_simple_options-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d611b070c01f52a24554cf06bb1ecff6f9ceca2d9aa0dd2bfc4844b7ef7aa3a |
|
MD5 | a45da39756f726b45c3b0242a5dded2e |
|
BLAKE2b-256 | 0de51ec448ea72850763eaa5133016e29acafb0330e768d79abd36a0957b76b2 |