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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_form_builder-1.2.2-py3-none-any.whl (472.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_form_builder-1.2.2.tar.gz
  • Upload date:
  • Size: 411.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_form_builder-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f4bd81a6d2c1f88419277688a77dbfd67e0c7043c230f2911afe8d4f42f26b38
MD5 5b3e7f9286e1f20f57e490c2ca631697
BLAKE2b-256 24986a622840f8d8d7b1298309ce232fac49d502d98d7843ba89c0171d45ff5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_form_builder-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71989800318a59d8c8d514ff3283049d457f00788f590c8fe9aa9b0585ee1c2c
MD5 58d47a3c112aadafe6deb8d463bc4c78
BLAKE2b-256 3b1570334295e1d83e73b94d1ecca844504358f54ada55d7164b3835f6f60baa

See more details on using hashes here.

Supported by

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