Skip to main content

Django Form builder

Project description

CI build Python version License

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.

Home Image 1: Example of Dynamic Form built via frontend

Home 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


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.2.1.tar.gz (410.9 kB view details)

Uploaded Source

Built Distribution

django_form_builder-1.2.1-py3-none-any.whl (472.7 kB view details)

Uploaded Python 3

File details

Details for the file django_form_builder-1.2.1.tar.gz.

File metadata

  • Download URL: django_form_builder-1.2.1.tar.gz
  • Upload date:
  • Size: 410.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for django_form_builder-1.2.1.tar.gz
Algorithm Hash digest
SHA256 bfb84393cf33add129d84103a3a25f175916f39d57f2b3d65c294b0797e30fa4
MD5 9bc1c35d0526d73db7857e45767ff791
BLAKE2b-256 49081e144a58e1c3b2aec7d7e63705dbcfe7b970bbe2569c6fbb14c765fc7dce

See more details on using hashes here.

File details

Details for the file django_form_builder-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_form_builder-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d8a75ae07dc1f1e287eb377b85a66ab271d3a8968cfcc1744b617441775e85
MD5 a0ba5b27c7e260beeef01fd410439e6f
BLAKE2b-256 90f39056e8c64a95185e04169a29ab122529f4a650452592d977f8887a7fe89f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page