Make your crispy form errors more pretty
Project description
- Add “cf_pretty_form_errors” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'crispy_forms', 'cf_pretty_form_errors', ... ]
- If crispy forms not configured, add template pack to your settings file
CRISPY_TEMPLATE_PACK = 'bootstrap3'
Add mixin to your form. PrettyFormPlaceholdersMixin for easy setup, PrettyFormMixin for detailed layout configuration
- Include {{ form.media.css }} and {{ form.media.js }} in your template, for example:
{{ form.media.css }} {% crispy form %} {{ form.media.js }}
Enjoy your new form errors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cf-pretty-form-errors-1.0.4.tar.gz
.
File metadata
- Download URL: cf-pretty-form-errors-1.0.4.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9ab8b2a01f4106dc04a03d4546e8b083024f3cd54b6e8f2cdea9b369303473 |
|
MD5 | c28e0f66be81abbbf8e1292e54a8cee0 |
|
BLAKE2b-256 | 12c49d4c3217a9849b385825eb5b40feff4d38e8862af7f66966b7678083f087 |
File details
Details for the file cf_pretty_form_errors-1.0.4-py2-none-any.whl
.
File metadata
- Download URL: cf_pretty_form_errors-1.0.4-py2-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 898cf000f83cb81ac09c864a2c377bb29cf34a2c3da56c2b19693cbffea2a4e7 |
|
MD5 | af46e2a4d5f892b58eee17f1aea94e01 |
|
BLAKE2b-256 | 9668f8023e2a39f546079914bf8fede5701b7c77a9c6400e67d89a35076fb698 |