- 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.
-
Notifications
You must be signed in to change notification settings - Fork 0
razortheory/cf-pretty-form-errors
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published