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
Built Distribution
File details
Details for the file django-form-builder-1.0.0.tar.gz
.
File metadata
- Download URL: django-form-builder-1.0.0.tar.gz
- Upload date:
- Size: 410.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fc3bf22658e4eafdf373ff48109d74ef0b4bc50884c8c26172623b127a3d3e |
|
MD5 | a7d7d10a95a48be98ca4d19b1e343d7a |
|
BLAKE2b-256 | 55a952c8662a8d229b3553cd0187e08f0d336a4ad3151aa909fa3bff1cd4bc75 |
File details
Details for the file django_form_builder-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_form_builder-1.0.0-py3-none-any.whl
- Upload date:
- Size: 472.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d453e7bb8b9d998460469a9d7977598c7cbe69a9c54f27f17eb0d5010e4fe3b6 |
|
MD5 | ac113730a333645cfa1b2abbb975a04b |
|
BLAKE2b-256 | 5ea98f8483e5fd1ff2936c154c8fbc142ee94c2a6af2b04eee2371cb06480cee |