Skip to main content

An application for the `Django framework. It provides tools for the template designer to customize forms. Rather than using {{ form.as_p }}, set up and reuse templates to render form elements.

Project description

django-formrenderingtools is an application for the Django framework. It provides tools for the template designer to customize forms.

Rather than using {{ form.as_p }}, set up and reuse templates to render form elements.

Currently, this application provides a “form_layouts” template tag library which itself provides the following template tags:

  • form: renders a full form, i.e. non field errors, all fields, field errors, labels and help texts

  • form_errors: renders global form errors, i.e. non field errors

  • field_list: renders a set of fields in a form, with corresponding field errors, labels and help texts

  • field: renders a field, with field errors, label and help text

  • field_errors: renders errors related to a field

  • label: renders a field’s label

  • help_text: renders a field’s help text

The goal of this application is to provide a pack of template tags which helps you render each element of a form: full form, list of fields, non field errors (global errors), field errors (specific errors), field, label, help text…

Every form element has a corresponding template tag, which uses templates to generate the output. Template designers no longer rely on developers to customize the form output.

This application uses a template-naming system that lets you reuse generic templates or use specific ones, depending on your needs. You can reuse built-in templates, override them or create your own templates.

Credits and license

This application is published under the BSD license. See docs/LICENSE.txt for details.

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-formrenderingtools-0.1.tar.gz (163.7 kB view details)

Uploaded Source

File details

Details for the file django-formrenderingtools-0.1.tar.gz.

File metadata

File hashes

Hashes for django-formrenderingtools-0.1.tar.gz
Algorithm Hash digest
SHA256 0e9c7963da6ae3c9af4ed4f0caf8b6116ce5434d4e70292ae2950a24ed766b46
MD5 70997db5e4338fbb48b56fc1ce96c368
BLAKE2b-256 c205921c7f1457c0e15ec78e002fdc7c176b7d1ab7272880e462b0ddcd2d9d2e

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