GithubHelp home page GithubHelp logo

engrogerio / django-form-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from universitadellacalabria/django-form-builder

0.0 0.0 0.0 6.69 MB

Dynamic forms builder for Django Framework

License: Apache License 2.0

Python 89.20% JavaScript 3.67% HTML 7.13%

django-form-builder's Introduction

Build status 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 found 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/*

django-form-builder's People

Contributors

francesco-filicetti avatar peppelinux avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.