qmetrics.net

Django Crispy Forms

Programmatic layout-driven Django form rendering

Django Crispy Forms screenshot

django-crispy-forms renders Django forms with a |crispy filter and {% crispy %} tag, using helpers and layouts instead of hand-written HTML templates.

Overview

django-crispy-forms gives Django projects a structured way to render forms as div-based layouts while controlling HTML output from Python. It stays compatible with Django’s normal form APIs and other form-related apps.

The |crispy filter offers a quick path similar to as_table or as_p, while the {% crispy %} tag renders forms from a FormHelper and explicit layout objects for finer control. Layout building blocks include rows, columns, fieldsets, buttons, and framework-specific components.

Template packs adapt output to several front-end frameworks, including Twitter Bootstrap versions 2–4, Tailwind, Bulma, and Foundation, selectable via CRISPY_TEMPLATE_PACK. Teams can also define custom template packs. Documentation covers helpers, layouts, formsets, AJAX validation patterns, and overriding templates.

The project evolved from django-uni-form and supports current Django releases with a separate package for Bootstrap 5. It emphasizes DRY form markup and reusable layout composition in views and templates.

Key features

  • |crispy filter for quick rendering
  • {% crispy %} tag with FormHelper
  • Composable layout objects
  • Multiple frontend template packs
  • Bootstrap, Tailwind, Bulma, Foundation
  • Formset and inline layout support
  • Custom template pack authoring
  • Helper attributes per framework

Use cases

  • Bootstrap-styled Django forms
  • Reusable form layouts across views
  • Complex multi-field form composition
  • Reducing bespoke form HTML templates

Similar software

Yup

Runtime object schema validation for JavaScript

Yup builds schemas that parse, coerce, and validate values at runtime. Chained methods express required fields, types, conditional rules, and custom tests with structured errors.

★ 23.6k⟳ 1 year agoMIT
Forms & SurveysDesktop/CLI app

react-jsonschema-form

React form builder driven by JSON Schema

react-jsonschema-form renders web forms from JSON Schema and optional UI Schema in React. Theme packages cover Material UI, Ant Design, Bootstrap, Chakra, and other design systems.

★ 15.9k⟳ yesterdayApache-2.0
Forms & SurveysDesktop/CLI app

Bootstrap File Input

Bootstrap-styled HTML5 file picker and upload plugin

bootstrap-fileinput upgrades file inputs for Bootstrap 3–5 with previews, multi-select, AJAX uploads, and drag-and-drop.

★ 5.3k⟳ 6 months agoBSD-2-Clause
Forms & SurveysDesktop/CLI app

Formio.js

Plain JavaScript JSON form renderer and Form.io SDK

Formio.js renders JSON schema forms in web apps with vanilla JavaScript and talks to Form.io APIs. It includes a builder, renderer, embed helper, and SDK.

★ 2.1k⟳ 1 month agoMIT
Forms & SurveysDesktop/CLI app

Laravel Form Builder

Symfony-inspired form builder for Laravel

A Laravel package that builds reusable HTML forms with validation, inspired by Symfony and Bootstrap 3 by default.

★ 1.7k⟳ 3 months agoMIT
Forms & SurveysDesktop/CLI app

Flutter Form Builder

Flutter form builder with ready-made input fields

Flutter Form Builder reduces boilerplate when building data collection forms in Flutter. It bundles validation hooks, change handling, and many prebuilt field widgets.

★ 1.6k⟳ 3 months agoMIT
Forms & SurveysDesktop/CLI app