Django Form builder
Project description
Django Form Builder
A Django Framework application to build dynamic forms, with widgets and Django's standards, using JSON objects.
Forms can be saved in a configurable storage (or settings.py). Users that requires high levels of customization will find what they're look for.
Consult the Official Documentation at readthedocs for usage specifications and advanced topics.
Image 1: Example of Dynamic Form built via frontend
Image 2: Preview of the builded form
Features
- Forms definitions via JSON object
- Save compiled form as JSON objects in model db and get its structure and contents with a simple model method call
- Override form constructor in order to add static common fields
- Create input fields using heritable classes, with customizable validation methods
- Manage Django Formset fields, with form insertion and removal via javascript;
- Manage and verify digitally signed file fields (PDF and P7M) without a certification authority validation (TODO via third-party API)
- Audio and Image Captcha
Examples
Example of a dynamic form JSON in database
{
"field_1": "value_field_1",
"field_2": "value_field_2",
"field_3": "value_field_3",
"attachments": {
"p7m": "file_1.pdf.p7m",
"pdf": "file_2.pdf"
}
}
CaPTCHA
In settings.py
configure these parameters
CAPTCHA_SECRET = b'your_secret'
CAPTCHA_SALT = b'your_salt'
Tests
# build a virtualend where to install all the requirements and requirements-dev ...
cd example
./manage.py test
# coverage
coverage erase
coverage run ./manage.py test
coverage report -m
Build
rm -R build/ dist/ *egg-info
python3 setup.py sdist
twine upload dist/*
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
django-form-builder-1.1.1.tar.gz
(410.7 kB
view hashes)
Built Distribution
Close
Hashes for django-form-builder-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb0f281fd39bd5a7672ce9007dcc433c48601ac20158ba32ba2ff5204f70aa5 |
|
MD5 | 6814553136016b238ed159134af6c8b8 |
|
BLAKE2b-256 | 643ca65f3cc67e812a2a1d55e54db738271c4a6f04d22a18acfc7e6516a5e1e8 |
Close
Hashes for django_form_builder-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7430f24b00dff30c5aa888a50885d915154dad7e8b12a80dec2794f68e710cda |
|
MD5 | beb0969819e7a575052a57afeb9d49cb |
|
BLAKE2b-256 | 762562297ee41a33dfadb5af65b1d7f3787609a97776b601d3bcd2e78362e3a4 |