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', ]
Run . test.sh to run test.
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.3.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae60e62309953c48548507ac7221148125bd5b1b3abd840ff5082186017cf3c |
|
MD5 | c0bb96f36e749d6e1c51e3b41b5a5433 |
|
BLAKE2b-256 | f1c5e282d85a8b0da2766892834c50aaadfe8af188a97cc95fdadddae7226a37 |