django_param provides ParamForm class which allows python param to be used in django form.
Project description
django_param provides ParamForm class which allows python param to be used in django form.
Quick start
Add ‘datetimewidget’, ‘django_select2’ and ‘taggit’ to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'datetimewidget', 'django_select2', 'taggit', ]
Usage:
# Specify your param class
class MyParam(param.Parameterized):
probability = param.Number(0.5, bounds=(0, 1), doc="Probability that...")
test_string = param.String(default="test string", doc="Your String")
my_param = MyParam()
# Initialize Django Form
django_bound_form = ParamForm({'probability': 0.1, 'test_string': 'test_bound'}, param_class=my_param)
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
Close
Hashes for django_param-0.0.4.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 316d37f869854a4ac150f0fcf788e3378ee96a5a1782b6f99c89abcc6f1738fc |
|
MD5 | 399edd1e91f000a769e61e29f64d50db |
|
BLAKE2b-256 | 140686e0cf3f65254cadc89160328e99c3a9431e7ac648b6b5d235fe3d31cc69 |