- 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.
Metadata
Release files for cf-pretty-form-errors 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cf-pretty-form-errors-1.0.4.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cf_pretty_form_errors-1.0.4-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 33.5 kB
Release files / cf-pretty-form-errors-1.0.4.tar.gz
| Download URL | cf-pretty-form-errors-1.0.4.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc9ab8b2a01f4106dc04a03d4546e8b083024f3cd54b6e8f2cdea9b369303473
|
|
BLAKE2b-256 checksum How to use checksums |
12c49d4c3217a9849b385825eb5b40feff4d38e8862af7f66966b7678083f087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cf_pretty_form_errors-1.0.4-py2-none-any.whl
| Download URL | cf_pretty_form_errors-1.0.4-py2-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
898cf000f83cb81ac09c864a2c377bb29cf34a2c3da56c2b19693cbffea2a4e7
|
|
BLAKE2b-256 checksum How to use checksums |
9668f8023e2a39f546079914bf8fede5701b7c77a9c6400e67d89a35076fb698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |