Skip to main content

Make your crispy form errors more pretty

Project description

================
CF Pretty Form Errors
================

Quick start
-----------

1. Add "cf_pretty_form_errors" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'crispy_forms',
'cf_pretty_form_errors',
...
]

2. If crispy forms not configured, add template pack to your settings.py::

CRISPY_TEMPLATE_PACK = 'bootstrap3'

3. Add mixin to your form. PrettyFormPlaceholdersMixin for easy setup, PrettyFormMixin for detailed layout configuration::

4. Include {{ form.media.css }} and {{ form.media.js }} in your template, for example::

{{ form.media.css }}
{% crispy form %}
{{ form.media.js }}

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

cf-pretty-form-errors-1.0.2a0.tar.gz (13.1 kB view hashes)

Uploaded Source

Built Distribution

cf_pretty_form_errors-1.0.2a0-py2-none-any.whl (19.8 kB view hashes)

Uploaded Python 2

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