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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

Details for the file cf-pretty-form-errors-1.0.2a0.tar.gz.

File metadata

File hashes

Hashes for cf-pretty-form-errors-1.0.2a0.tar.gz
Algorithm Hash digest
SHA256 ac2e785395ea12282838567362af293e1b6979d8411e3d2c4d726cc275a427d6
MD5 917100312aeb5a1b312872e2ee2a5ab6
BLAKE2b-256 059eaff2a8d37a11a76d0a2151d7977aeaac936f825424cdd5dd929c8e6ad5cb

See more details on using hashes here.

File details

Details for the file cf_pretty_form_errors-1.0.2a0-py2-none-any.whl.

File metadata

File hashes

Hashes for cf_pretty_form_errors-1.0.2a0-py2-none-any.whl
Algorithm Hash digest
SHA256 6df0d4dfddadbcf64728c668aacbdb7a8edf955a45b38f8d08b1798a7b840ac5
MD5 07bcdbd7114aac6eadfc2ccf5ba8073e
BLAKE2b-256 4ef44646874ee11c5c0b062c9557bb6cc73c9edcea2e29dcc7bbf5ee5bdee2fe

See more details on using hashes here.

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