Skip to main content

Make your crispy form errors more pretty

Project description

  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 file
    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 }}
  5. Enjoy your new form errors.

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.4.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

cf_pretty_form_errors-1.0.4-py2-none-any.whl (20.1 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for cf-pretty-form-errors-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fc9ab8b2a01f4106dc04a03d4546e8b083024f3cd54b6e8f2cdea9b369303473
MD5 c28e0f66be81abbbf8e1292e54a8cee0
BLAKE2b-256 12c49d4c3217a9849b385825eb5b40feff4d38e8862af7f66966b7678083f087

See more details on using hashes here.

File details

Details for the file cf_pretty_form_errors-1.0.4-py2-none-any.whl.

File metadata

File hashes

Hashes for cf_pretty_form_errors-1.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 898cf000f83cb81ac09c864a2c377bb29cf34a2c3da56c2b19693cbffea2a4e7
MD5 af46e2a4d5f892b58eee17f1aea94e01
BLAKE2b-256 9668f8023e2a39f546079914bf8fede5701b7c77a9c6400e67d89a35076fb698

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